Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DEFAULT_DB_NAME = "main"
View Source
var DbMap = map[string]*ORM{}
Functions ¶
Types ¶
type ConfigPostgresql ¶
type ConfigPostgresql struct {
DSN string // orm DSN
}
type ConfigSqlite ¶
type ConfigSqlite struct {
Path string
}
type ORM ¶
func NewPostgresql ¶
func NewPostgresql(c *ConfigPostgresql) *ORM
func NewSqlite ¶
func NewSqlite(c *ConfigSqlite) *ORM
type OrmConfig ¶
type OrmConfig struct { DbType string Sqlite ConfigSqlite Postgresql ConfigPostgresql }
Click to show internal directories.
Click to hide internal directories.