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

Function convertCopyStmt

internal/engine/postgresql/convert.go:953–966  ·  view source on GitHub ↗
(n *pg.CopyStmt)

Source from the content-addressed store, hash-verified

951}
952
953func convertCopyStmt(n *pg.CopyStmt) *ast.CopyStmt {
954 if n == nil {
955 return nil
956 }
957 return &ast.CopyStmt{
958 Relation: convertRangeVar(n.Relation),
959 Query: convertNode(n.Query),
960 Attlist: convertSlice(n.Attlist),
961 IsFrom: n.IsFrom,
962 IsProgram: n.IsProgram,
963 Filename: makeString(n.Filename),
964 Options: convertSlice(n.Options),
965 }
966}
967
968func convertCreateAmStmt(n *pg.CreateAmStmt) *ast.CreateAmStmt {
969 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 4

convertRangeVarFunction · 0.85
convertNodeFunction · 0.85
convertSliceFunction · 0.85
makeStringFunction · 0.85

Tested by

no test coverage detected