Documentation
¶
Overview ¶
Package parser implements a DDL parser for SQLite schemas.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Diagnostic ¶
Diagnostic captures parser feedback for callers to display.
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser consumes tokenizer output and produces a normalized catalog.
type SchemaParser ¶
type SchemaParser interface {
Parse(ctx context.Context, path string, content []byte) (*model.Catalog, []Diagnostic, error)
}
SchemaParser parses SQL DDL statements and produces a schema catalog.
func NewSchemaParser ¶
func NewSchemaParser(dialect string) (SchemaParser, error)
NewSchemaParser creates a new SchemaParser for the specified dialect. Currently only "sqlite" is supported.
Click to show internal directories.
Click to hide internal directories.