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

Interface Parser

internal/compiler/compile.go:23–27  ·  view source on GitHub ↗

TODO: Rename this interface Engine

Source from the content-addressed store, hash-verified

21
22// TODO: Rename this interface Engine
23type Parser interface {
24 Parse(io.Reader) ([]ast.Statement, error)
25 CommentSyntax() source.CommentSyntax
26 IsReservedKeyword(string) bool
27}
28
29func (c *Compiler) parseCatalog(schemas []string) error {
30 files, err := sqlpath.Glob(schemas)

Callers 7

parseQueryMethod · 0.65
quoteIdentMethod · 0.65
QuoteIdentMethod · 0.95
TestApplyFunction · 0.95
TestUpdateErrorsFunction · 0.95
TestUpdateFunction · 0.95
TestFormatFunction · 0.95

Implementers 4

Parserinternal/engine/postgresql/parse.go
Parserinternal/engine/dolphin/parse.go
Parserinternal/engine/clickhouse/parse.go
Parserinternal/engine/sqlite/parse.go

Calls

no outgoing calls

Tested by

no test coverage detected