Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
package cockroachdb
import (
"github.com/cockroachdb/cockroachdb-parser/pkg/sql/parser/statements"
"github.com/cockroachdb/cockroachdb-parser/pkg/sql/sem/tree"
storepb "github.com/bytebase/bytebase/backend/generated-go/store"
)
// AST is the AST implementation for CockroachDB parser.
// It implements the base.AST interface.
type AST struct {
// StartPosition is the 1-based position where this statement starts.
StartPosition *storepb.Position
Stmt statements.Statement[tree.Statement]
}
// ASTStartPosition implements base.AST interface.
func (a *AST) ASTStartPosition() *storepb.Position {
return a.StartPosition
}