[][src]Crate coord

Coordinates client requests with the dataflow layer.

Client requests are either a "simple" query, in which SQL is parsed, planned, and executed in one shot, or an "extended" query, where the client controls the parsing, planning, and execution via individual messages, allowing it to reuse pre-parsed and pre-planned queries (i.e., via "prepared statements"), which can be more efficient when the same query is executed multiple times.

These commands are derived directly from the commands that pgwire produces, though they can, in theory, be provided by something other than a pgwire server.

Modules

session

Per-connection configuration parameters and state.

Structs

Config
PersistenceConfig
Response
TimestampConfig

Enums

Command

The requests the client can make of a Coordinator.

ExecuteResponse

The response to [Command::Execute].

StartupMessage

Notifications that may be generated in response to Command::Startup.

Functions

dump_catalog

Loads the catalog stored at path and returns its serialized state.

serve

Begins coordinating user requests to the dataflow layer based on the provided configuration. Returns the thread that hosts the coordinator.

Type Definitions

RowsFuture