Documentation ¶
Index ¶
- func AddInstance(dbServer, dbName, username, password string, maxConnNum int, owner string) (err error)
- func DelInstance(owner string)
- func GetFilter(provider provider.Provider) model.Filter
- func Initialize()
- func NewConfig(dbAddress, dbName, username, password string) executor.Config
- func NewExecutor(cfgPtr executor.Config) (executor.Executor, error)
- func NewPool() executor.Pool
- func Uninitialize()
- type Orm
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInstance ¶
func DelInstance ¶
func DelInstance(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(entity model.Model, filter model.Filter) (int64, error) BatchQuery(entity model.Model, 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.