MCPcopy Index your code
hub / github.com/bytebase/bytebase / AST

Interface AST

backend/plugin/parser/base/ast.go:9–15  ·  view source on GitHub ↗

AST is the interface that all parser AST types must implement. Each parser package defines its own concrete AST type with parser-specific fields.

Source from the content-addressed store, hash-verified

7// AST is the interface that all parser AST types must implement.
8// Each parser package defines its own concrete AST type with parser-specific fields.
9type AST interface {
10 // ASTStartPosition returns the 1-based position where this SQL statement starts
11 // in the original multi-statement input. Used for error position reporting.
12 // Returns nil if position is unknown.
13 // Named to avoid collision with protobuf-generated GetStartPosition methods.
14 ASTStartPosition() *storepb.Position
15}

Implementers 15

OmniASTbackend/plugin/parser/mongodb/mongodb.
omniASTbackend/plugin/parser/trino/trino.go
OmniASTbackend/plugin/parser/redshift/omni.go
OmniASTbackend/plugin/parser/cosmosdb/cosmosd
OmniASTbackend/plugin/parser/mysql/omni.go
omniASTbackend/plugin/parser/doris/doris.go
testASTbackend/plugin/parser/plsql/resource_c
OmniASTbackend/plugin/parser/plsql/omni.go
testASTbackend/plugin/parser/base/statement_t
omniASTbackend/plugin/parser/partiql/partiql.
OmniASTbackend/plugin/parser/pg/omni.go
omniASTbackend/plugin/parser/starrocks/starro

Calls

no outgoing calls

Tested by

no test coverage detected