Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeStmtForBinding ¶
func NormalizeStmtForBinding(stmtNode ast.StmtNode, options ...optionFunc) (normalizedStmt, exactSQLDigest string)
NormalizeStmtForBinding normalizes a statement for binding. when noDB is false, schema names will be completed automatically: `select * from t` --> `select * from db . t`. when noDB is true, schema names will be eliminated automatically: `select * from db . t` --> `select * from t`.
func WithSpecifiedDB ¶
func WithSpecifiedDB(specifiedDB string) optionFunc
WithSpecifiedDB specifies the specified DB name.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.