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

Method convertCollateExpr

internal/engine/sqlite/convert.go:1213–1219  ·  view source on GitHub ↗
(n *parser.Expr_collateContext)

Source from the content-addressed store, hash-verified

1211}
1212
1213func (c *cc) convertCollateExpr(n *parser.Expr_collateContext) ast.Node {
1214 return &ast.CollateExpr{
1215 Xpr: c.convert(n.Expr()),
1216 Arg: NewIdentifier(n.Collation_name().GetText()),
1217 Location: n.GetStart().GetStart(),
1218 }
1219}
1220
1221func (c *cc) convertCase(n *parser.Expr_caseContext) ast.Node {
1222 e := &ast.CaseExpr{

Callers 1

convertMethod · 0.95

Calls 6

convertMethod · 0.95
GetTextMethod · 0.80
GetStartMethod · 0.80
NewIdentifierFunction · 0.70
ExprMethod · 0.65
Collation_nameMethod · 0.65

Tested by

no test coverage detected