NEW RasterizedDB 1.1.0 is out: sharding and the gateway, the message broker, roles and row-level security, compression, .NET on NuGet, and the enterprise edition. What's new ›
PROTOCOLS

Five doors, one room.

PostgreSQL, MySQL, SQL Server, Redis and the native rastcp protocol, served by one process at the same time, over TCP, TLS or unix sockets. Every door leads to the same tables, the same transactions and the same roles.

1 / 3

How the front ends are built

A MySQL or SQL Server connection has no engine path of its own. It opens an in-process PostgreSQL session over an in-memory pipe and talks to it as a PostgreSQL client would. The front end owns only the wire format, the dialect and the session statements its drivers send.

So transaction blocks, rollback when a connection drops, savepoints, isolation levels, prepared statements, cancellation, timeouts and every privilege check are the same code for every protocol, and cannot drift apart.

  • Dialects are rewritten at the token level: a keyword inside a string or a quoted name is never touched
  • Errors carry each database's own numbers, with the PostgreSQL SQLSTATE at the end
  • An error inside a transaction fails only its statement, as in MySQL and SQL Server
  • Where an exact answer is not possible, the statement is refused, never answered differently
2 / 3

Turn on what you need

Each protocol is off until it is given a port or a socket, and all of them run at once. TCP can be turned off per protocol so that only a socket file remains.

shell
rasterizeddb_core --location /var/lib/rasterizeddb \
    --pg-port 5432 --pg-password <password> \
    --mysql-port 3306 --mysql-socket /run/rdb/mysql.sock \
    --mssql-port 1433 \
    --kv-port 6379 \
    --rdb-port 61170
3 / 3

Verified with real clients

  • psql, tokio-postgres, sqlx, SeaORM, and a PostgreSQL 17 differential harness
  • mysql 8.4 and mariadb 11.4 clients, a mysqldump from MySQL 8.4, sqlx-mysql, Connector/J 9.1, SQLAlchemy 2 with PyMySQL
  • Microsoft.Data.SqlClient 7.1 with SqlBulkCopy, Dapper, EF Core 10, tiberius, sqlcmd
  • redis-cli, memtier_benchmark and Redis client libraries
✓ page rendered in 101 µs axum + tera + htmx · no other javascript