Documentation ¶
Index ¶
- Variables
- func Dialect() string
- func NewPlaceHolderBuilder() func() string
- type CallbackScanner
- type CallbackScannerWithIndex
- type MySql
- func (flavor MySql) Count(tableName string, cond stmt.ConditionStmt, page stmt.PaginationStmt) func(ctx context.Context, tx Preparer) (count int, err error)
- func (flavor MySql) Delete(table_name string, q stmt.ConditionStmt) func(ctx context.Context, tx Preparer) (affected int64, err error)
- func (flavor MySql) Exist(tableName string, cond stmt.ConditionStmt) func(ctx context.Context, tx Preparer) (exist bool, err error)
- func (flavor MySql) Insert(table_name string, columns []string, values ...[]interface{}) ...
- func (flavor MySql) InsertOrUpdate(table_name string, insert_columns []string, update_columns []string, ...) ...
- func (flavor MySql) QueryRow(table_name string, columns []string, q stmt.ConditionStmt, o stmt.OrderStmt, ...) func(ctx context.Context, tx Preparer) func(CallbackScanner) error
- func (flavor MySql) QueryRows(table_name string, columns []string, q stmt.ConditionStmt, o stmt.OrderStmt, ...) func(ctx context.Context, tx Preparer) func(CallbackScannerWithIndex) error
- func (flavor MySql) Update(table_name string, keys_values map[string]interface{}, q stmt.ConditionStmt) func(ctx context.Context, tx Preparer) (affected int64, err error)
- type Preparer
Constants ¶
This section is empty.
Variables ¶
View Source
var Repeat = excute.Repeat
Functions ¶
func NewPlaceHolderBuilder ¶
func NewPlaceHolderBuilder() func() string
Types ¶
type CallbackScanner ¶
type CallbackScanner = excute.CallbackScanner
type CallbackScannerWithIndex ¶
type CallbackScannerWithIndex = excute.CallbackScannerWithIndex
type MySql ¶
type MySql struct {
// contains filtered or unexported fields
}
func (MySql) Count ¶
func (flavor MySql) Count(tableName string, cond stmt.ConditionStmt, page stmt.PaginationStmt) func(ctx context.Context, tx Preparer) (count int, err error)
Count
func (MySql) Exist ¶
func (flavor MySql) Exist(tableName string, cond stmt.ConditionStmt) func(ctx context.Context, tx Preparer) (exist bool, err error)
Exist
func (MySql) InsertOrUpdate ¶
func (MySql) QueryRow ¶
func (flavor MySql) QueryRow(table_name string, columns []string, q stmt.ConditionStmt, o stmt.OrderStmt, p stmt.PaginationStmt) func(ctx context.Context, tx Preparer) func(CallbackScanner) error
Click to show internal directories.
Click to hide internal directories.