Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Execer ¶
type Execer interface {
// NamedExecContext 使用命名参数执行sql
NamedExecContext(ctx context.Context, execSQL string, arg any) (sql.Result, error)
// NamedExec 使用命名参数执行sql
NamedExec(query string, arg any) (sql.Result, error)
// ExecContext 使用数组参数执行sql
ExecContext(ctx context.Context, execSQL string, args ...any) (sql.Result, error)
// Exec 使用数组参数执行sql
Exec(query string, args ...any) (sql.Result, error)
}
Execer 更新语句执行器
type Queryer ¶
type Queryer interface {
// Select 查询多条数据
Select(dest any, query string, args ...any) error
// SelectContext 查询多条数据
SelectContext(ctx context.Context, dest any, query string, args ...any) error
// Get 查询单条数据
Get(dest any, query string, args ...any) error
// GetContext 查询单条数据
GetContext(ctx context.Context, dest any, query string, args ...any) error
}
Queryer 查询语句执行器
Click to show internal directories.
Click to hide internal directories.