Skip to main content

Module db

Module db 

Source
Expand description

The db_call wire contract shared by the guest SDK and the platform: requests, responses, bound parameters and structured database errors.

Structs§

Column
A result column: its name and SQL type name.
DbError
A database failure as the guest sees it: the Postgres error fields when the server reported one, and a DbErrorKind either way. Boxed so a Result<_, DbError> stays a pointer wide; the fields read through Deref.
DbErrorFields

Enums§

DbErrorKind
DbRequest
One db_call request.
DbResponse
One db_call response.
Isolation
Param
A bound parameter. Serializes as {"t": <tag>, "v": <value>}; Null carries no v, Bytes is base64 and non-finite floats are the strings "NaN", "Infinity" and "-Infinity".

Type Aliases§

RowMap