MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / convertPartitionCmd

Function convertPartitionCmd

internal/engine/postgresql/convert.go:2083–2091  ·  view source on GitHub ↗
(n *pg.PartitionCmd)

Source from the content-addressed store, hash-verified

2081}
2082
2083func convertPartitionCmd(n *pg.PartitionCmd) *ast.PartitionCmd {
2084 if n == nil {
2085 return nil
2086 }
2087 return &ast.PartitionCmd{
2088 Name: convertRangeVar(n.Name),
2089 Bound: convertPartitionBoundSpec(n.Bound),
2090 }
2091}
2092
2093func convertPartitionElem(n *pg.PartitionElem) *ast.PartitionElem {
2094 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 2

convertRangeVarFunction · 0.85

Tested by

no test coverage detected