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

Method convertAssignment

internal/engine/dolphin/convert.go:125–131  ·  view source on GitHub ↗
(n *pcast.Assignment)

Source from the content-addressed store, hash-verified

123}
124
125func (c *cc) convertAssignment(n *pcast.Assignment) *ast.ResTarget {
126 name := identifier(n.Column.Name.String())
127 return &ast.ResTarget{
128 Name: &name,
129 Val: c.convert(n.Expr),
130 }
131}
132
133// TODO: These codes should be defined in the sql/lang package
134func opToName(o opcode.Op) string {

Callers 3

convertInsertStmtMethod · 0.95
convertUpdateStmtMethod · 0.95
convertMethod · 0.95

Calls 3

convertMethod · 0.95
identifierFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected