sqlutil

package
v0.0.0-...-27964f3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecQueryMany

func ExecQueryMany(ctx context.Context, exec mysql.Exec, sql string, args []interface{}, f func(row *sql.Rows) error) error

func ExecQueryOne

func ExecQueryOne(ctx context.Context, exec mysql.Exec, sql string, args []interface{}, f func(row *sql.Row) error) error

func TableWithCount

func TableWithCount(ctx context.Context, exec mysql.Exec, table string, where map[string]interface{}) (int64, error)

func TableWithDelete

func TableWithDelete(ctx context.Context, exec mysql.Exec, table string, where map[string]interface{}) (int64, error)

func TableWithInsertMany

func TableWithInsertMany(ctx context.Context, exec mysql.Exec, table string, columns []string, values []map[string]interface{}) (int64, error)

func TableWithInsertOne

func TableWithInsertOne(ctx context.Context, exec mysql.Exec, table string, value map[string]interface{}) (int64, error)

func TableWithSelectMany

func TableWithSelectMany(ctx context.Context, exec mysql.Exec, table string, column []string, where map[string]interface{}, order map[string]string, f func(row *sql.Rows) error) error

func TableWithSelectOne

func TableWithSelectOne(ctx context.Context, exec mysql.Exec, table string, column []string, where map[string]interface{}, f func(row *sql.Row) error) error

func TableWithSelectRange

func TableWithSelectRange(ctx context.Context, exec mysql.Exec, table string, column []string, where map[string]interface{}, order map[string]string, offset, limit int64, f func(row *sql.Rows) error) error

func TableWithUpdate

func TableWithUpdate(ctx context.Context, exec mysql.Exec, table string, value, where map[string]interface{}) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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