Documentation
¶
Index ¶
- Variables
- func Generate(dta interface{}, txtFile string) error
- func ProcessState(sm *StateMachine, token *lex.Token) (err error)
- type Column
- type FileName
- type GenerateFunc
- type NextAction
- type StateMachine
- func (sm *StateMachine) DataPath() string
- func (sm *StateMachine) FilePrefix() string
- func (sm *StateMachine) Import() string
- func (sm *StateMachine) ImportSQL() string
- func (sm *StateMachine) ImportTime(ignoreNull bool) string
- func (sm *StateMachine) Package() string
- func (sm *StateMachine) ProjName() string
- func (sm *StateMachine) ReverseTables() (result []Table)
- type Table
- func (table Table) CapPlurName() string
- func (table Table) CapSingName() string
- func (table Table) CompareMapFields() string
- func (table Table) CreateQuery() string
- func (table Table) CreateStatement() string
- func (table Table) CreateTableStatement() string
- func (table Table) DeleteAllStatement() string
- func (table Table) DeleteQuery() string
- func (table Table) DeleteStatement() string
- func (table Table) DropTableStatement() string
- func (table Table) PlurName() string
- func (table Table) RetrieveAllStatement() string
- func (table Table) RetrieveStatement() string
- func (table Table) ScanAll() string
- func (table Table) SingName() string
- func (table Table) Star() string
- func (table Table) StructFields() string
- func (table Table) TestData(dataid int) string
- func (table Table) UpdateQuery() string
- func (table Table) UpdateStatement() string
Constants ¶
This section is empty.
Variables ¶
View Source
var Keywords []string // The keyword tokens
View Source
var Lexer *lex.Lexer // The lexer object. Use this to construct a Scanner
View Source
var Literals []string // The tokens representing literal strings
View Source
var TokenIds map[string]int // A map from the token names to their int ids
View Source
var Tokens []string // All of the tokens (including literals and keywords)
Functions ¶
func ProcessState ¶
func ProcessState(sm *StateMachine, token *lex.Token) (err error)
Types ¶
type NextAction ¶
type NextAction struct { State int Fn func(*StateMachine, *lex.Token) }
type StateMachine ¶
func InitState ¶
func InitState(fname string) *StateMachine
func ReadSM ¶
func ReadSM() (sm *StateMachine, err error)
func (*StateMachine) DataPath ¶
func (sm *StateMachine) DataPath() string
func (*StateMachine) FilePrefix ¶
func (sm *StateMachine) FilePrefix() string
func (*StateMachine) Import ¶
func (sm *StateMachine) Import() string
func (*StateMachine) ImportSQL ¶
func (sm *StateMachine) ImportSQL() string
func (*StateMachine) ImportTime ¶
func (sm *StateMachine) ImportTime(ignoreNull bool) string
func (*StateMachine) Package ¶
func (sm *StateMachine) Package() string
func (*StateMachine) ProjName ¶
func (sm *StateMachine) ProjName() string
func (*StateMachine) ReverseTables ¶
func (sm *StateMachine) ReverseTables() (result []Table)
type Table ¶
func (Table) CapSingName ¶
func (Table) CompareMapFields ¶
func (Table) CreateQuery ¶
func (Table) CreateStatement ¶
func (Table) CreateTableStatement ¶
func (Table) DeleteAllStatement ¶
func (Table) DeleteQuery ¶
func (Table) DeleteStatement ¶
func (Table) DropTableStatement ¶
func (Table) RetrieveAllStatement ¶
func (Table) RetrieveStatement ¶
func (Table) StructFields ¶
func (Table) UpdateQuery ¶
func (Table) UpdateStatement ¶
Click to show internal directories.
Click to hide internal directories.