Documentation ¶
Index ¶
- func AddDatabase(dbServer, dbName, username, password, charSet string, maxConnNum int, ...) (err error)
- func DelDatabase(owner string)
- func Initialize()
- func NewConfig(dbServer, dbName, username, password, charSet string) executor.Config
- func NewExecutor(config executor.Config) (executor.Executor, error)
- func NewPool() executor.Pool
- func Uninitialized()
- type Orm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddDatabase ¶ added in v1.3.2
func DelDatabase ¶ added in v1.3.2
func DelDatabase(owner string)
func NewExecutor ¶
NewExecutor NewExecutor
Types ¶
type Orm ¶
type Orm interface { Create(entity model.Model) error Drop(entity model.Model) error Insert(entity model.Model) (model.Model, error) Update(entity model.Model) (model.Model, error) Delete(entity model.Model) (model.Model, error) Query(entity model.Model) (model.Model, error) Count(filter model.Filter) (int64, error) BatchQuery(filter model.Filter) ([]model.Model, error) BeginTransaction() error CommitTransaction() error RollbackTransaction() error Release() }
Orm orm interface
Click to show internal directories.
Click to hide internal directories.