MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / TxnControlExpr

Struct TxnControlExpr

pkg/sql/sem/tree/routine.go:345–353  ·  view source on GitHub ↗

TxnControlExpr implements PL/pgSQL COMMIT and ROLLBACK statements. It directs the session to end the current transaction, and provides a plan to resume execution in a new transaction in the form of StoredProcContinuation.

Source from the content-addressed store, hash-verified

343// the session to end the current transaction, and provides a plan to resume
344// execution in a new transaction in the form of StoredProcContinuation.
345type TxnControlExpr struct {
346 Op StoredProcTxnOp
347 Modes TransactionModes
348 Args TypedExprs
349 Gen TxnControlPlanGenerator
350
351 Name string
352 Typ *types.T
353}
354
355var _ Expr = &TxnControlExpr{}
356

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected