MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Statement

Interface Statement

pkg/sql/sem/tree/stmt.go:69–79  ·  view source on GitHub ↗

Statement represents a statement.

Source from the content-addressed store, hash-verified

67
68// Statement represents a statement.
69type Statement interface {
70 fmt.Stringer
71 NodeFormatter
72 StatementType() StatementType
73 // StatementTag is a short string identifying the type of statement
74 // (usually a single verb). This is different than the Stringer output,
75 // which is the actual statement (including args).
76 // TODO(dt): Currently tags are always pg-compatible in the future it
77 // might make sense to pass a tag format specifier.
78 StatementTag() string
79}
80
81// canModifySchema is to be implemented by statements that can modify
82// the database schema but may have StatementType() != DDL.

Callers 1

ParseMethod · 0.92

Implementers 15

CreateChangefeedpkg/sql/sem/tree/changefeed.go
BeginTransactionpkg/sql/sem/tree/txn.go
CommitTransactionpkg/sql/sem/tree/txn.go
RollbackTransactionpkg/sql/sem/tree/txn.go
Savepointpkg/sql/sem/tree/txn.go
ReleaseSavepointpkg/sql/sem/tree/txn.go
RollbackToSavepointpkg/sql/sem/tree/txn.go
Backuppkg/sql/sem/tree/backup.go
Restorepkg/sql/sem/tree/backup.go
Revokepkg/sql/sem/tree/revoke.go
RevokeRolepkg/sql/sem/tree/revoke.go
RenameDatabasepkg/sql/sem/tree/rename.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…