(stmts []ast.Statement)
| 34 | } |
| 35 | |
| 36 | func (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 | |
| 45 | func (c *Catalog) Update(stmt ast.Statement, colGen columnGenerator) error { |
| 46 | if stmt.Raw == nil { |