Documentation ¶ Index ¶ type Column func GetResTargetColumn(resTarget *pg_query.ResTarget) (col Column, ok bool) type Db func NewDbSchema(schemaPath string) (*Db, error) func (s *Db) Load(schemaPath string) error func (s *Db) LoadPostgres(schemaPath string) error type Table Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Column ¶ type Column struct { Name string Type string } Column represents a column in table func GetResTargetColumn ¶ func GetResTargetColumn(resTarget *pg_query.ResTarget) (col Column, ok bool) type Db ¶ type Db struct { Tables map[string]Table } func NewDbSchema ¶ func NewDbSchema(schemaPath string) (*Db, error) func (*Db) Load ¶ func (s *Db) Load(schemaPath string) error func (*Db) LoadPostgres ¶ func (s *Db) LoadPostgres(schemaPath string) error type Table ¶ type Table struct { Name string Columns map[string]Column ReadOnly bool } Table represents a table in database Source Files ¶ View all Source files postgres.go schema.go Click to show internal directories. Click to hide internal directories.