Documentation
¶
Index ¶
Constants ¶
View Source
const (
MaxMySQLPlaceholders = 65535
)
Variables ¶
This section is empty.
Functions ¶
func SliceQuery ¶
func SliceQuery( placeholders []string, args []interface{}, numberOfColumns int, ) ( plChunks [][]string, argsChunks [][]interface{}, err error, )
SliceQuery slices placeholders (db args "(?,?,?)"), and arguments into chunks of maximum fittable size of MaxMySQLPlaceholders size placeholders - array of (?,?,?,?) args - array of arguments (values) Returns two 2d arrays of equal size, plChunks will contain placeholders, and argsChunks will contain arguments The ordering of plChunks matches that of argsChunks and vice versa.
func WithRetrier ¶
WithRetrier wraps d and overwrites its methods with retrier
Types ¶
Click to show internal directories.
Click to hide internal directories.