Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildRepeatableData ¶
func BuildSingletonData ¶
Types ¶
type Schema ¶
type Schema struct {
// contains filtered or unexported fields
}
func (*Schema) CollectTables ¶
type TemplateData ¶
type TemplateData struct { Tables []bdb.Table Table bdb.Table // Controls what names are output PkgName string Schema string // Controls which code is output (mysql vs postgres ...) DriverName string UseLastInsertID bool // Turn off auto timestamps or hook generation NoHooks bool NoAutoTimestamps bool // Tags control which Tags []string // StringFuncs are usable in templates with stringMap StringFuncs map[string]func(string) string `json:"-"` // Dialect controls quoting Dialect queries.Dialect LQ string RQ string }
func (TemplateData) Quotes ¶
func (t TemplateData) Quotes(s string) string
func (TemplateData) SchemaTable ¶
func (t TemplateData) SchemaTable(table string) string
Click to show internal directories.
Click to hide internal directories.