Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDBWithArgs ¶
CreateDBWithArgs create a database connection with args
func GetTableKey ¶
GetTableKey returns the key of table
Types ¶
type CreateDBOp ¶
type CreateDBOp struct {
// contains filtered or unexported fields
}
CreateDBOp holds all optional fields
type CreateDBOpFn ¶
type CreateDBOpFn func(*CreateDBOp)
CreateDBOpFn set the option's field
func WithCharset ¶
func WithCharset(charset string) CreateDBOpFn
WithCharset set the charset to the connection
func WithInterpolateParams ¶
func WithInterpolateParams(enable bool) CreateDBOpFn
WithInterpolateParams set text generate mode to the connection
func WithTimeout ¶
func WithTimeout(timeout int) CreateDBOpFn
WithTimeout set the timeout to the connetion
Click to show internal directories.
Click to hide internal directories.