excute

package
v0.0.0-...-e8da0a6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Repeat = excute.Repeat

Functions

func Dialect

func Dialect() string

func NewPlaceHolderBuilder

func NewPlaceHolderBuilder() func() string

Types

type CallbackScanner

type CallbackScanner = excute.CallbackScanner

type MySql

type MySql struct {
	// contains filtered or unexported fields
}

func (MySql) Count

func (flavor MySql) Count(tableName string, cond stmt.ConditionStmt) func(ctx context.Context, tx Preparer) (count int, err error)

Count

func (MySql) Delete

func (flavor MySql) Delete(table_name string, q stmt.ConditionStmt) func(ctx context.Context, tx Preparer) (affected int64, err error)

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) Insert

func (flavor MySql) Insert(table_name string, columns []string, values ...[]interface{}) func(ctx context.Context, tx Preparer) (affected int64, lastid int64, err error)

func (MySql) QueryRow

func (flavor MySql) QueryRow(table_name string, columns []string, q stmt.ConditionStmt) func(ctx context.Context, tx Preparer) func(CallbackScanner) error

func (MySql) QueryRows

func (flavor MySql) QueryRows(table_name string, columns []string, q stmt.ConditionStmt, o stmt.OrderStmt, p stmt.PaginationStmt) func(ctx context.Context, tx Preparer) func(CallbackScanner) error

func (MySql) Update

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)

func (MySql) Upsert

func (flavor MySql) Upsert(table_name string, insert_columns []string, update_columns []string, values ...[]interface{}) func(ctx context.Context, tx Preparer) (affected int64, lastid int64, err error)

type Preparer

type Preparer = excute.Preparer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL