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

Function convertCreateDomainStmt

internal/engine/postgresql/convert.go:1005–1015  ·  view source on GitHub ↗
(n *pg.CreateDomainStmt)

Source from the content-addressed store, hash-verified

1003}
1004
1005func convertCreateDomainStmt(n *pg.CreateDomainStmt) *ast.CreateDomainStmt {
1006 if n == nil {
1007 return nil
1008 }
1009 return &ast.CreateDomainStmt{
1010 Domainname: convertSlice(n.Domainname),
1011 TypeName: convertTypeName(n.TypeName),
1012 CollClause: convertCollateClause(n.CollClause),
1013 Constraints: convertSlice(n.Constraints),
1014 }
1015}
1016
1017func convertCreateEnumStmt(n *pg.CreateEnumStmt) *ast.CreateEnumStmt {
1018 if n == nil {

Callers 1

convertNodeFunction · 0.85

Calls 3

convertSliceFunction · 0.85
convertCollateClauseFunction · 0.85
convertTypeNameFunction · 0.70

Tested by

no test coverage detected