MCPcopy
hub / github.com/sqlc-dev/sqlc / convertCreateTableSpaceStmt

Function convertCreateTableSpaceStmt

internal/engine/postgresql/convert.go:1289–1299  ·  view source on GitHub ↗
(n *pg.CreateTableSpaceStmt)

Source from the content-addressed store, hash-verified

1287}
1288
1289func convertCreateTableSpaceStmt(n *pg.CreateTableSpaceStmt) *ast.CreateTableSpaceStmt {
1290 if n == nil {
1291 return nil
1292 }
1293 return &ast.CreateTableSpaceStmt{
1294 Tablespacename: makeString(n.Tablespacename),
1295 Owner: convertRoleSpec(n.Owner),
1296 Location: makeString(n.Location),
1297 Options: convertSlice(n.Options),
1298 }
1299}
1300
1301func convertCreateTransformStmt(n *pg.CreateTransformStmt) *ast.CreateTransformStmt {
1302 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

makeStringFunction · 0.85
convertRoleSpecFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected