Documentation ¶
Index ¶
- func AddDatabase(dbServer, dbName, username, password, charSet string, maxConnNum int, ...) (err *cd.Result)
- func DelDatabase(owner string)
- func Initialize()
- func NewConfig(dbServer, dbName, username, password, charSet string) executor.Config
- func NewExecutor(config executor.Config) (executor.Executor, *cd.Result)
- 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) *cd.Result Drop(entity model.Model) *cd.Result Insert(entity model.Model) (model.Model, *cd.Result) Update(entity model.Model) (model.Model, *cd.Result) Delete(entity model.Model) (model.Model, *cd.Result) Query(entity model.Model) (model.Model, *cd.Result) Count(filter model.Filter) (int64, *cd.Result) BatchQuery(filter model.Filter) ([]model.Model, *cd.Result) BeginTransaction() *cd.Result CommitTransaction() *cd.Result RollbackTransaction() *cd.Result Release() }
Orm orm interface
Click to show internal directories.
Click to hide internal directories.