Versions in this module Expand all Collapse all v0 v0.2.0 Jan 23, 2015 Changes in this version + func Consume(line, prefix string) (bool, string) + func EndsMultilineComment(line string) (bool, string) + func IsComment(line string) bool + func ParseIndexes(lines []string) (string, error) + func StartsMultilineComment(line string) bool + type ActiveFile struct + AST *ast.File + SrcName string + func (af ActiveFile) DefName() string + type Column struct + Array bool + GoType string + IncludeName string + MustNull bool + Name string + Pkg *Package + Tag reflect.StructTag + Tbl *Table + func (c *Column) IterateColumns(ch chan Column) + func (c Column) Length() int + func (c Column) NonZeroCheck() string + func (c Column) Preset() bool + func (c Column) SimpleType() bool + func (c Column) Subcolumns() chan Column + func (c Column) Subrecord() *Subrecord + func (c Column) Type() string + type Func struct + File *ast.File + Name string + Spec *ast.FuncDecl + type Index struct + Columns []string + type Mixin struct + File *ast.File + Name string + Spec *ast.TypeSpec + func (m Mixin) Fields() []*ast.Field + type Mixinable interface + File func() *ast.File + Name func() string + Spec func() *ast.TypeSpec + type Package struct + ActiveFiles []ActiveFile + Funcs map[string][]Func + Mixins []Mixin + Subrecords []Subrecord + Tables []Table + func (p *Package) Name() string + func (p *Package) SetName(n string) + func (p Package) TableByName(tableName string) (Table, bool) + func (pkg *Package) OutputTemplates() + func (pkg *Package) ParseSrc(src ...*os.File) error + func (pkg *Package) WriteLibraryFiles() + func (pkg *Package) WriteStarterFile() + type Relationship struct + Alias string + ChildName string + IsArray bool + OperativeColumn string + Parent Table + ParentName string + Table string + Type string + func (r Relationship) ColumnName() string + func (r Relationship) IsBelongsTo() bool + func (r Relationship) IsChildHasMany() bool + func (r Relationship) IsHasMany() bool + func (r Relationship) IsHasOne() bool + func (r Relationship) Name() string + type Subrecord struct + func (s *Subrecord) AddRetrieved() + func (t Subrecord) File() *ast.File + func (t Subrecord) Name() string + func (t Subrecord) Spec() *ast.TypeSpec + type Table struct + Indexes []Index + Pkg *Package + Relations []Relationship + func (t *Table) Columns() []Column + func (t *Table) PrimaryKeyColumn() Column + func (t Table) ColumnByName(colName string) (Column, bool) + func (t Table) File() *ast.File + func (t Table) HasRelationship(relate string) bool + func (t Table) Name() string + func (t Table) RelationshipTo(tableName string) (Relationship, bool) + func (t Table) Spec() *ast.TypeSpec