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

Method Build

internal/sql/catalog/catalog.go:36–43  ·  view source on GitHub ↗
(stmts []ast.Statement)

Source from the content-addressed store, hash-verified

34}
35
36func (c *Catalog) Build(stmts []ast.Statement) error {
37 for i := range stmts {
38 if err := c.Update(stmts[i], nil); err != nil {
39 return err
40 }
41 }
42 return nil
43}
44
45func (c *Catalog) Update(stmt ast.Statement, colGen columnGenerator) error {
46 if stmt.Raw == nil {

Callers 7

TestUpdateErrorsFunction · 0.95
TestUpdateFunction · 0.80
file_vet_vet_proto_initFunction · 0.80

Calls 1

UpdateMethod · 0.95

Tested by 2

TestUpdateErrorsFunction · 0.76
TestUpdateFunction · 0.64