Native API
How to talk to Raft DB without SQL - the binary wire protocol, the HTTP JSON API, tokens and logins, the JSON filter language, the plan IR, schemas and the document format.
- The native interface: What the native (non-SQL) interface of Raft DB consists of and which page describes which part.
- Wire protocol: The frame layout and every request and reply of the Raft DB binary protocol, as implemented by the raftdb-proto crate.
- Connections, errors and versions: How a binary connection starts (Hello, credentials, Use), the error codes, the replica rule, and what protocol version 2 adds.
- Pipelining and batching: How to keep many requests in flight on one connection, match replies by id, and make writes cheaper with group commit and deferred answers.
- HTTP API: Transport rules, error shape, request ids and the list of endpoints of the Raft DB HTTP JSON API under /v1.
- HTTP: databases and tables: Create, list, inspect, index, checkpoint, rename and drop databases and tables over the HTTP API, with the status codes the tests check.
- HTTP: documents and import: Write, read and delete one document by key over HTTP, and load many with NDJSON import, with exact requests and answers from the tests.
- HTTP: queries: POST /v1/query with a JSON filter or a SQL SELECT - request fields, counts, paging with cursors, sorting, errors with positions.
- Authentication: The shared token, password accounts, session tokens, roles and the clear-text limitation, on the binary and HTTP doors.
- Filter language: The JSON filter language - operators, nested paths, strict typing rules, how missing fields behave, and examples checked against the shared conformance file.
- Plan IR and the executor: The plan data structure that both JSON filters and SQL compile to, how the batched executor runs it, and the ordering rules used by ORDER BY.
- Documents and schemas: The binary document format (types, layouts, sizes) and how a schema checks documents before they are stored.