Skip to main content

Module session

Module session 

Source
Expand description

Per-connection configuration parameters and state.

Structs§

InProgressRows
State of an in-progress, rows-returning portal.
LifecycleTimestamps
Part of statement lifecycle. These are timestamps that come from the Adapter frontend (mz-pgwire) part of the lifecycle.
Portal
A portal represents the execution state of a running or runnable query.
PortalRefMut
A mutable reference to a portal, capturing its state and associated metadata. Importantly, it does not give mutable access to stmt and desc, which means that you do not need to increment Session::state_revision when modifying fields through a PortalRefMut, because the portal’s meaning is not changed.
PreparedStatement
A prepared statement.
ReadOnlyCompletion 🔒
Obligations that can be satisfied without transferring the session to the coordinator.
Session
A session holds per-connection state.
SessionConfig
Configures a new Session.
SessionMeta
Data structure suitable for passing to other threads that need access to some common Session properties.
SessionVars
Session variables.
StateRevision
Points to a revision of catalog state and session state. When the current revisions are not the same as the revisions when a prepared statement or a portal was described, we need to check whether the description is still valid.
Transaction
State data for transactions.
WriteOp
An INSERT waiting to be committed.

Enums§

DdlInspection 🔒
A catalog result or statement description that must remain valid at DDL commit.
EndTransactionAction
The action to take during end_transaction.
PortalState
Execution states of a portal.
RequireLinearization
Whether a transaction requires linearization.
TransactionCode
A transaction’s status code.
TransactionCompletionOwner 🔒
TransactionOps
The type of operation being performed by the transaction.
TransactionStatus
The transaction status of a session.

Constants§

DEFAULT_DATABASE_NAME
The name of the default database that Materialize uses.
DUMMY_CONNECTION_ID 🔒
SERVER_MAJOR_VERSION
The major version of PostgreSQL that Materialize claims to be.
SERVER_MINOR_VERSION
The minor version of PostgreSQL that Materialize claims to be.
SERVER_PATCH_VERSION
The patch version of PostgreSQL that Materialize claims to be.

Traits§

Var
A Var represents a configuration parameter of an arbitrary type.

Type Aliases§

RowBatchStream
A stream of batched rows delivered to a client writer.
TransactionId
An abstraction allowing us to identify different transactions.