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

Function convertVariableSetStmt

internal/engine/postgresql/convert.go:2844–2854  ·  view source on GitHub ↗
(n *pg.VariableSetStmt)

Source from the content-addressed store, hash-verified

2842}
2843
2844func convertVariableSetStmt(n *pg.VariableSetStmt) *ast.VariableSetStmt {
2845 if n == nil {
2846 return nil
2847 }
2848 return &ast.VariableSetStmt{
2849 Kind: ast.VariableSetKind(n.Kind),
2850 Name: makeString(n.Name),
2851 Args: convertSlice(n.Args),
2852 IsLocal: n.IsLocal,
2853 }
2854}
2855
2856func convertVariableShowStmt(n *pg.VariableShowStmt) *ast.VariableShowStmt {
2857 if n == nil {

Callers 4

convertAlterRoleSetStmtFunction · 0.85
convertAlterSystemStmtFunction · 0.85
convertNodeFunction · 0.85

Calls 3

VariableSetKindTypeAlias · 0.92
makeStringFunction · 0.85
convertSliceFunction · 0.85

Tested by

no test coverage detected