Documentation ¶ Index ¶ type Argument type Catalog func New(def string) *Catalog func (c *Catalog) Build(stmts []ast.Statement) error type Column type Enum func (e *Enum) SetComment(c string) type Function type Schema type Table type Type Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Argument ¶ type Argument struct { Name string Type *ast.TypeName HasDefault bool } type Catalog ¶ type Catalog struct { Name string Schemas []*Schema Comment string DefaultSchema string } func New ¶ func New(def string) *Catalog func (*Catalog) Build ¶ func (c *Catalog) Build(stmts []ast.Statement) error type Column ¶ type Column struct { Name string Type ast.TypeName IsNotNull bool Comment string } TODO: Should this just be ast Nodes? type Enum ¶ type Enum struct { Name string Vals []string Comment string } func (*Enum) SetComment ¶ func (e *Enum) SetComment(c string) type Function ¶ type Function struct { Name string Args []*Argument ReturnType *ast.TypeName Comment string } type Schema ¶ type Schema struct { Name string Tables []*Table Types []Type Funcs []*Function Comment string } type Table ¶ type Table struct { Rel *ast.TableName Columns []*Column Comment string } type Type ¶ type Type interface { SetComment(string) // contains filtered or unexported methods } Source Files ¶ View all Source files catalog.go comment_on.go func.go schema.go table.go types.go Click to show internal directories. Click to hide internal directories.