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 fuzz is false, schema names will be completed automatically: `select * from t` --> `select * from db . t`. when fuzz is true, schema names will be eliminated automatically: `select * from db . t` --> `select * from t`.
func WithFuzz ¶
func WithFuzz(fuzz bool) optionFunc
WithFuzz specifies whether to eliminate schema names.
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.