package
25.1.0+incompatible
Repository: https://github.com/cockroachdb/cockroach.git
Documentation: pkg.go.dev
# Functions
Walk traverses the plpgsql statement.
# Constants
GetDiagnosticsColumnName returns the column name related to the exception.
GetDiagnosticsConstraintName returns the constraint name related to the exception.
GetDiagnosticsContext returns text describing the current call stack.
GetDiagnosticsDatatypeName returns the data type name related to the exception.
GetDiagnosticsErrorContext returns text describing the exception's callstack.
GetDiagnosticsErrorDetail returns the exceptions detail message.
GetDiagnosticsErrorHint returns the exceptions hint message.
GetDiagnosticsMessageText returns the exceptions primary message.
GetDiagnosticsReturnedSQLState returns the SQLSTATE error code related to the exception.
GetDiagnosticsRowCount returns the number of rows processed by the recent SQL command.
GetDiagnosticsSchemaName returns the name of the schema related to the exception.
GetDiagnosticsTableName returns the name of the table related to the exception.
# Structs
stmt_assert.
stmt_assign.
pl_block.
stmt_call.
stmt_case.
stmt_close.
stmt_continue.
decl_stmt.
stmt_do.
stmt_dynexecute TODO(chengxiong): query should be a better expression type.
stmt_execsql.
stmt_exit.
stmt_fetch stmt_move (where IsMove = true).
stmt_foreach_a.
stmt_for.
stmt_getdiag.
stmt_if.
stmt_loop.
stmt_null.
stmt_open.
stmt_perform.
stmt_raise.
stmt_return.
SQLStmtVisitor applies a visitor to every SQL statement and expression found while walking the PL/pgSQL AST.
stmt_commit and stmt_rollback.
TypeRefVisitor calls the given replace function on each type reference contained in the visited PLpgSQL statements.
stmt_while.
# Interfaces
ForLoopControl is an interface covering the loop control structures for the integer range, query, and cursor FOR loops.
StatementVisitor defines methods that are called plpgsql statements during a statement walk.
# Type aliases
GetDiagnosticsKind represents the type of error diagnostic item in stmt_getdiag.