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 CountRunner
- type CreateRunner
- type DeleteRunner
- type DropRunner
- type InsertRunner
- type Orm
- type QueryRunner
- type UpdateRunner
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 CountRunner ¶ added in v1.3.147
type CountRunner struct {
// contains filtered or unexported fields
}
func NewCountRunner ¶ added in v1.3.147
type CreateRunner ¶ added in v1.3.147
type CreateRunner struct {
// contains filtered or unexported fields
}
func NewCreateRunner ¶ added in v1.3.147
func (*CreateRunner) Create ¶ added in v1.3.147
func (s *CreateRunner) Create() (err *cd.Result)
type DeleteRunner ¶ added in v1.3.147
type DeleteRunner struct { QueryRunner // contains filtered or unexported fields }
func NewDeleteRunner ¶ added in v1.3.147
func (*DeleteRunner) Delete ¶ added in v1.3.147
func (s *DeleteRunner) Delete() (err *cd.Result)
type DropRunner ¶ added in v1.3.147
type DropRunner struct {
// contains filtered or unexported fields
}
func NewDropRunner ¶ added in v1.3.147
func (*DropRunner) Drop ¶ added in v1.3.147
func (s *DropRunner) Drop() (err *cd.Result)
type InsertRunner ¶ added in v1.3.147
type InsertRunner struct { QueryRunner // contains filtered or unexported fields }
func NewInsertRunner ¶ added in v1.3.147
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
type QueryRunner ¶ added in v1.3.147
type QueryRunner struct {
// contains filtered or unexported fields
}
func NewQueryRunner ¶ added in v1.3.147
type UpdateRunner ¶ added in v1.3.147
type UpdateRunner struct { QueryRunner InsertRunner DeleteRunner // contains filtered or unexported fields }
func NewUpdateRunner ¶ added in v1.3.147
Click to show internal directories.
Click to hide internal directories.