Documentation ¶
Index ¶
- func Bytes2Uint32(b []byte) uint32
- func CtxWithAstTableName(ctx context.Context, tableName string) context.Context
- func ExtractFirstTableNameFromStmt(stmt ast.StmtNode) string
- func GetAstTableNameFromCtx(ctx context.Context) (string, bool)
- func UInt322Bytes(n uint32) []byte
- type AstVisitor
- type FirstTableNameVisitor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes2Uint32 ¶
func CtxWithAstTableName ¶
func UInt322Bytes ¶
Types ¶
type AstVisitor ¶
type AstVisitor struct {
// contains filtered or unexported fields
}
func ExtractAstVisit ¶
func ExtractAstVisit(stmt ast.StmtNode) (*AstVisitor, error)
func (*AstVisitor) SqlFeature ¶
func (f *AstVisitor) SqlFeature() string
type FirstTableNameVisitor ¶
type FirstTableNameVisitor struct {
// contains filtered or unexported fields
}
func (*FirstTableNameVisitor) TableName ¶
func (f *FirstTableNameVisitor) TableName() string
Click to show internal directories.
Click to hide internal directories.