Documentation ¶
Index ¶
Constants ¶
View Source
const DbTypeNode = "dbs"
Variables ¶
This section is empty.
Functions ¶
func NewBuilder ¶
func NewBuilder() container.StandardBuilder
Types ¶
type Executer ¶
type Executer interface { Query(ctx context.Context, sql string, input map[string]interface{}) (data Rows, err error) Multi(ctx context.Context, sql string, input map[string]interface{}) (data []Rows, err error) First(ctx context.Context, sql string, input map[string]interface{}) (data Row, err error) Scalar(ctx context.Context, sql string, input map[string]interface{}) (data interface{}, err error) Exec(ctx context.Context, sql string, input map[string]interface{}) (r Result, err error) }
Executer 数据库操作对象集合
type StandardDB ¶
StandardDB
func NewStandardDB ¶
func NewStandardDB(container container.Container) StandardDB
NewStandardDBs 创建DB
Click to show internal directories.
Click to hide internal directories.