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
DbErrorKindeither way. Boxed so aResult<_, DbError>stays a pointer wide; the fields read throughDeref. - DbError
Fields
Enums§
- DbError
Kind - DbRequest
- One
db_callrequest. - DbResponse
- One
db_callresponse. - Isolation
- Param
- A bound parameter. Serializes as
{"t": <tag>, "v": <value>};Nullcarries nov,Bytesis base64 and non-finite floats are the strings"NaN","Infinity"and"-Infinity".