Documentation ¶
Index ¶
Constants ¶
View Source
const AS = 57348
View Source
const FROM = 57347
View Source
const FULL = 57349
View Source
const GENERATE = 57346
View Source
const IDENT = 57355
View Source
const INNER = 57352
View Source
const JCOND = 57357
View Source
const JOIN = 57353
View Source
const LEFT = 57350
View Source
const ON = 57354
View Source
const RIGHT = 57351
View Source
const STRING = 57356
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeclCommon ¶
type DeclCommon struct { StructName string SchemaName string TableName string Alias string OptPlural string }
func (DeclCommon) TableFullName ¶
func (d DeclCommon) TableFullName() string
type Declaration ¶
type Declaration struct { DeclCommon Options Options Joins Joins }
func (*Declaration) ParseOptions ¶
func (d *Declaration) ParseOptions() error
func (*Declaration) String ¶
func (d *Declaration) String() string
type Declarations ¶
type Declarations []*Declaration
func (Declarations) String ¶
func (ds Declarations) String() string
type Join ¶
type Join struct { DeclCommon JoinType string OnCond string }
type RootDeclaration ¶
type RootDeclaration struct {
Declarations Declarations
}
func ParseString ¶
func ParseString(filename, src string) (*RootDeclaration, error)
func (*RootDeclaration) String ¶
func (f *RootDeclaration) String() string
Click to show internal directories.
Click to hide internal directories.