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

Function convertCreateSeqStmt

internal/engine/postgresql/convert.go:1218–1229  ·  view source on GitHub ↗
(n *pg.CreateSeqStmt)

Source from the content-addressed store, hash-verified

1216}
1217
1218func convertCreateSeqStmt(n *pg.CreateSeqStmt) *ast.CreateSeqStmt {
1219 if n == nil {
1220 return nil
1221 }
1222 return &ast.CreateSeqStmt{
1223 Sequence: convertRangeVar(n.Sequence),
1224 Options: convertSlice(n.Options),
1225 OwnerId: ast.Oid(n.OwnerId),
1226 ForIdentity: n.ForIdentity,
1227 IfNotExists: n.IfNotExists,
1228 }
1229}
1230
1231func convertCreateStatsStmt(n *pg.CreateStatsStmt) *ast.CreateStatsStmt {
1232 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

OidTypeAlias · 0.92
convertRangeVarFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected