Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Response
intType = 0
intRequest id
intError code (0 for success)
stringError 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.

Notifications

Clients should expect notification messages at any moment after the successful handshake.

...

TABLE_DROP = 2

Request
UUIDtable ID

Response does not have extra data (see basic response above)Basic response.

TABLES_GET = 3

Request does not have extra data (see basic request above)Basic request.

Response
intN = table count
N * (UUID + string)pairs of tables ids and names

...

Request
UUIDtable ID
map (string → any)key-value pairs

Response does not have extra data (see basic response above).

Basic response.

TUPLE_UPSERT_WITH_SCHEMA = 6

Request
UUIDtable ID
intschema ID
arrvalues for all columns in given schema

Basic response.TODO: Schema-based upsert would be more efficient?

TUPLE_GET =

...

7

Request
UUIDtable ID
arrvalues for key columns (any order)

TODO: returns schema ID?

Response
intschema id for the current tuple
arrtuple values in schema order


Schemas can be cached on the client.

...