Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDriver ¶ added in v0.0.22
RegisterModel
func RegisterModel ¶
func RegisterModel(models ...interface{})
Types ¶
type OrmContext ¶
func InitPostgresOrm ¶
func InitPostgresOrm(config PostgresConfig) (context OrmContext, err error)
Initialize
func InitSqliteOrm ¶
func InitSqliteOrm(config SqliteConfig) (context OrmContext, err error)
func (*OrmContext) Transaction ¶ added in v0.0.22
func (o *OrmContext) Transaction(h func(ctx OrmContext) error) (err error)
type PostgresConfig ¶
type SqliteConfig ¶
type SqliteConfig struct {
Database string
}
Click to show internal directories.
Click to hide internal directories.