Versions in this module Expand all Collapse all v0 v0.1.0 Jul 20, 2014 Changes in this version + func FieldToColumn(field string) string + func GenSupport(w io.Writer, pkg string) + func StructToTable(strct string) string + type Code struct + func NewCode() *Code + func (c *Code) Gen(mapper *Map, pkg string, out io.Writer) + type ColumnMap struct + Column string + Field string + Null bool + PrimaryKey bool + Type string + type Map []TableMap + func NewMap(in io.Reader) (*Map, error) + func (m *Map) Imports() []importSpec + type TableMap struct + AutoPK bool + Columns []ColumnMap + Struct string + Table string + func (t TableMap) ColumnList() string + func (t TableMap) Fields() []string + func (t TableMap) InsertFields() []string + func (t TableMap) InsertList() string + func (t TableMap) PrimaryKey() *ColumnMap + func (t TableMap) UpdateList() string