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

Function convertPartitionSpec

internal/engine/postgresql/convert.go:2117–2126  ·  view source on GitHub ↗
(n *pg.PartitionSpec)

Source from the content-addressed store, hash-verified

2115}
2116
2117func convertPartitionSpec(n *pg.PartitionSpec) *ast.PartitionSpec {
2118 if n == nil {
2119 return nil
2120 }
2121 return &ast.PartitionSpec{
2122 Strategy: makeString(n.Strategy.String()),
2123 PartParams: convertSlice(n.PartParams),
2124 Location: int(n.Location),
2125 }
2126}
2127
2128func convertPrepareStmt(n *pg.PrepareStmt) *ast.PrepareStmt {
2129 if n == nil {

Callers 2

convertCreateStmtFunction · 0.85
convertNodeFunction · 0.85

Calls 3

makeStringFunction · 0.85
convertSliceFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected