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

Function convertAlterObjectSchemaStmt

internal/engine/postgresql/convert.go:355–366  ·  view source on GitHub ↗
(n *pg.AlterObjectSchemaStmt)

Source from the content-addressed store, hash-verified

353}
354
355func convertAlterObjectSchemaStmt(n *pg.AlterObjectSchemaStmt) *ast.AlterObjectSchemaStmt {
356 if n == nil {
357 return nil
358 }
359 return &ast.AlterObjectSchemaStmt{
360 ObjectType: ast.ObjectType(n.ObjectType),
361 Relation: convertRangeVar(n.Relation),
362 Object: convertNode(n.Object),
363 Newschema: makeString(n.Newschema),
364 MissingOk: n.MissingOk,
365 }
366}
367
368func convertAlterOpFamilyStmt(n *pg.AlterOpFamilyStmt) *ast.AlterOpFamilyStmt {
369 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 4

ObjectTypeTypeAlias · 0.92
convertRangeVarFunction · 0.85
convertNodeFunction · 0.85
makeStringFunction · 0.85

Tested by

no test coverage detected