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

Function convertAlterSeqStmt

internal/engine/postgresql/convert.go:450–460  ·  view source on GitHub ↗
(n *pg.AlterSeqStmt)

Source from the content-addressed store, hash-verified

448}
449
450func convertAlterSeqStmt(n *pg.AlterSeqStmt) *ast.AlterSeqStmt {
451 if n == nil {
452 return nil
453 }
454 return &ast.AlterSeqStmt{
455 Sequence: convertRangeVar(n.Sequence),
456 Options: convertSlice(n.Options),
457 ForIdentity: n.ForIdentity,
458 MissingOk: n.MissingOk,
459 }
460}
461
462func convertAlterSubscriptionStmt(n *pg.AlterSubscriptionStmt) *ast.AlterSubscriptionStmt {
463 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

convertRangeVarFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected