Documentation
The Raft DB manual: getting started, tutorial, administration, security, replication, SQL reference, connectors, native API, internals and troubleshooting.
- Introduction: What Raft DB is, what it is not, how it is built, how a statement travels through it, and where the project stands.
- Getting started: Requirements, the programs and every option they take, starting and stopping, connecting with clients and applications, and where the data lives.
- Tutorial: A hands-on tutorial in the style of the MySQL tutorial, using only statements that were checked against MySQL and MariaDB, from creating a database to prepared statements.
- Administration: Configuring, running, logging, monitoring, backing up and tuning a Raft DB server, with the limits stated honestly.
- Security: Accounts, authentication plugins, privileges, network exposure, the server's own accounts and tokens, and the plain fact that Raft DB has no TLS.
- Replication and clustering: Read-only replicas, synchronous confirmation, automatic failover by a quorum of watchers, table groups with a primary per group, consistency guarantees, and an exact account of what is built and what is open.
- SQL reference (MySQL and MariaDB dialects): The language Raft DB's MySQL and MariaDB front-ends read, in the order of the MySQL Reference Manual: language structure, data types, operators, functions and the statements.
- 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.
- Connectors: Client libraries for 16 languages, the connector specification and conformance tests, standard MySQL and MariaDB drivers, and the web applications verified against Raft DB.
- Raft DB Studio: The browser-based management studio for Raft DB - view files, connect to servers, browse and edit tables, run SQL and JSON filters.
- Internals: How the Raft DB storage engine, server, replication control plane and MySQL/MariaDB front-end are built, crate by crate, with the numbers of each.
- Performance: How Raft DB is measured, the benchmark suites and targets, dated results with their machines, comparisons with other databases and tuning.
- Design decisions: The catalogue of Raft DB design decisions D1 to D88, grouped by theme, each with what was decided and why.
- Changelog and roadmap: What changed in Raft DB, entry by entry and grouped by area and period, and what is done, in progress and planned.
- Troubleshooting: Fixes for installation, start-up, connection, SQL, replication and performance problems, a table of the MySQL error numbers Raft DB returns, and how to report a bug.
- SQL Server front-end (T-SQL): Connecting SQL Server clients (sqlcmd, ODBC, JDBC, .NET) to Raft DB over the TDS protocol, and the T-SQL it understands.
- PostgreSQL front-end: Connecting PostgreSQL clients (psql, JDBC) to Raft DB over the PostgreSQL protocol, and the SQL it understands. Privileges, COPY, PL/pgSQL, triggers, arrays, pg_dump, LISTEN/NOTIFY, MERGE, cursors, materialized views, intervals, time zones and full-text search with @@ work and are compared with a real PostgreSQL 18 on 52 test scripts; what is not supported is listed.
- Graph queries: A property graph inside Raft DB, queried with openCypher over the Bolt protocol, so that Neo4j drivers and cypher-shell connect. In development: what works is listed here and is compared with a real Neo4j 5.26.
- Coming from other databases: How to use Raft DB if your project was written for MongoDB, Redis, SQLite, PostgreSQL, MySQL, MariaDB, SQL Server or Neo4j, what carries over, what does not, and how to move the data. Honest about what is missing.