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

Function convertCreateSchemaStmt

internal/engine/postgresql/convert.go:1206–1216  ·  view source on GitHub ↗
(n *pg.CreateSchemaStmt)

Source from the content-addressed store, hash-verified

1204}
1205
1206func convertCreateSchemaStmt(n *pg.CreateSchemaStmt) *ast.CreateSchemaStmt {
1207 if n == nil {
1208 return nil
1209 }
1210 return &ast.CreateSchemaStmt{
1211 Name: makeString(n.Schemaname),
1212 Authrole: convertRoleSpec(n.Authrole),
1213 SchemaElts: convertSlice(n.SchemaElts),
1214 IfNotExists: n.IfNotExists,
1215 }
1216}
1217
1218func convertCreateSeqStmt(n *pg.CreateSeqStmt) *ast.CreateSeqStmt {
1219 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