Versions in this module Expand all Collapse all v0 v0.10.2 Jul 15, 2020 Changes in this version + func RegisterDatabase(dbcfg *DatabaseConfig, tc gorp.TypeConverter) (zesty.DB, error) + type DBMS uint8 + const DatabaseMySQL + const DatabasePostgreSQL + const DatabaseSqlite3 + func (d DBMS) DriverName() string + type DatabaseConfig struct + AutoCreateTables bool + ConnMaxLifetime time.Duration + DSN string + MaxIdleConns int + MaxOpenConns int + Name string + System DBMS + type TableModel struct + AutoIncrement bool + Keys []string + Model interface{} + Name string + func RegisterTableModel(dbName, tableName string, model interface{}) *TableModel + func (tb *TableModel) WithAutoIncrement(enable bool) *TableModel + func (tb *TableModel) WithKeys(keys []string) *TableModel