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

Method quote

internal/compiler/expand.go:72–79  ·  view source on GitHub ↗
(x string)

Source from the content-addressed store, hash-verified

70}
71
72func (c *Compiler) quote(x string) string {
73 switch c.conf.Engine {
74 case config.EngineMySQL:
75 return "`" + x + "`"
76 default:
77 return "\"" + x + "\""
78 }
79}
80
81func (c *Compiler) expandStmt(qc *QueryCatalog, raw *ast.RawStmt, node ast.Node) ([]source.Edit, error) {
82 tables, err := c.sourceTables(qc, node)

Callers 2

quoteIdentMethod · 0.95
expandStmtMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected