...
Response | |
int | Type = 0 |
int | Request id |
int | Error code (0 for success) |
string | Error message (when error code is not 0) |
... | Operation-specific data |
Request or response without operation-specific data is called basic request or basic response below.
Clients should expect notification messages at any moment after the successful handshake.
...
Request | |
---|---|
UUID | table ID |
Response does not have extra data (see basic response above)Basic response.
Request does not have extra data (see basic request above)Basic request.
Response | |
---|---|
int | N = table count |
N * (UUID + string) | pairs of tables ids and names |
...
Request | |
---|---|
UUID | table ID |
map (string → any) | key-value pairs |
Response does not have extra data (see basic response above).
Basic response.
Request | |
---|---|
UUID | table ID |
int | schema ID |
arr | values for all columns in given schema |
Basic response.TODO: Schema-based upsert would be more efficient?
...
Request | |
---|---|
UUID | table ID |
arr | values for key columns (any order) |
TODO: returns schema ID?
Response | |
---|---|
int | schema id for the current tuple |
arr | tuple values in schema order |
Schemas can be cached on the client.
...