Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Release notes
Changelog
Elyra
ElyraSQL

ElyraSQL

The modern SQL database that speaks MySQL — one file, blazing fast, AI-ready.

A robust, MySQL-compatible SQL server written in Rust.

Single-file · ACID · OLAP-ready · vector-native · AI-native


Drop-in for MySQL. Built for what comes next.

ElyraSQL speaks the MySQL wire protocol, so your existing clients, drivers and frameworks — Laravel, Django, Rails, Node, Go, Rust — connect unchanged. But underneath it's a fresh, Rust-native engine built for 2026: the entire database lives in a single crash-safe file, large analytical queries run through a parallel streaming engine, and vector search + AI embeddings are first-class SQL — no bolt-on extensions, no second system to operate.

One binary. One file. Your whole transactional, analytical and AI-search workload — served over the protocol your stack already knows.

→ Get started in 60 seconds  ·  → Full documentation

Stable release: v1.12.18. A broad, MySQL-compatible SQL engine: full DDL/DML, all join types (INNER/LEFT/RIGHT/FULL/CROSS/NATURAL/USING, streamed for large analytical joins — including non-equi and cross joins, which never buffer the product), subqueries (correlated too), CTEs (incl. WITH RECURSIVE), window functions, GROUP BY ... WITH ROLLUP, set operations, transactions (snapshot + serializable), a large function catalog with exact DECIMAL and BIGINT UNSIGNED, MySQL's utf8mb4 / utf8mb4_0900_ai_ci accent-insensitive default collation, ENUM/SET validation, introspection (SHOW + INFORMATION_SCHEMA), vector + full-text + hybrid + faceted search, and parallel OLAP aggregation. Native mysql_native_password / caching_sha2_password auth, TLS, replication and Raft failover. Correctness is guarded by wire, property, fuzz, crash-recovery and concurrent soak/chaos tests, and by a query battery run differentially against MySQL 8.4 on every pull request. Laravel migrations and Eloquent run unmodified. The same engine also runs in-process, as a library, with no server at all, keeps embeddings in step with the text they came from, and serves a schema to an AI agent over MCP. See the changelog.

Why ElyraSQL

  • Framework-ready — runs Laravel/Eloquent (migrations, models, relationships, transactions) and any MySQL-driver stack; see the Framework Integration guide.
  • MySQL wire protocol — connect with mysql, DBeaver, Workbench, or any MySQL driver in any language. No custom client required.
  • Native client — prefer something purpose-built? ElyraSQL ships its own native client: elyracode.com/sql/client.
  • One file — the entire database lives in a single ACID file (*.edb), crash-safe with a single-writer / multi-reader model.
  • OLAP-ready — large aggregations run through a parallel, streaming engine with memory proportional to the number of groups, not the table size.
  • Vector-native — VECTOR(n) columns with ANN search, MySQL-flavoured distance functions.
  • AI-native search — HYBRID(...) fuses full-text + vector ranking (RRF) in one query, and ai_embed('text') generates embeddings in SQL via an OpenAI-compatible endpoint: the RAG stack in one file, no external search engine.
  • MIT licensed, release-tested on Ubuntu 24.04+ and Apple Silicon macOS 11+.

SQL support

  • DDL — CREATE/ALTER/DROP TABLE (incl. MODIFY/CHANGE/SET DEFAULT), CREATE TABLE ... AS SELECT, CREATE TABLE ... LIKE, TRUNCATE, CREATE/DROP VIEW, CREATE INDEX; primary/composite keys, secondary and vector indexes; DEFAULT, AUTO_INCREMENT, generated columns, ENUM/SET.
  • Constraints — enforced PRIMARY KEY, UNIQUE, NOT NULL, CHECK, and FOREIGN KEY (with ON DELETE RESTRICT/CASCADE/SET NULL).
  • DML — INSERT (multi-row, INSERT ... SELECT), upserts (REPLACE, INSERT IGNORE, ON DUPLICATE KEY UPDATE), UPDATE/DELETE with subqueries and multi-table joins.
  • Queries — all join types (incl. NATURAL and USING, with MySQL's column-coalescing rules), GROUP BY/HAVING, ORDER BY/LIMIT, subqueries (uncorrelated and correlated, incl. over joins), derived tables, CTEs and WITH RECURSIVE, window functions with frames, set operations (UNION/INTERSECT/EXCEPT).
  • Functions — string, math, date/time (incl. INTERVAL arithmetic), conditional, CAST, REGEXP, JSON, vector, and aggregates including GROUP_CONCAT and conditional aggregates. Exact DECIMAL arithmetic.
  • Transactions — BEGIN/COMMIT/ROLLBACK, SAVEPOINT, snapshot and opt-in serializable isolation, and SELECT ... FOR UPDATE/FOR SHARE (optimistic row locking).
  • Backup — hot, consistent BACKUP TO '<path>' while serving, plus offline elyrasql backup/restore CLI commands.
  • Programmability — row-level triggers (BEFORE/AFTER with NEW/OLD), stored procedures with parameters, variables and IF/WHILE, and full-text MATCH ... AGAINST.
  • Users & access control — persistent accounts via CREATE USER/DROP USER, GRANT/REVOKE, SET PASSWORD, SHOW GRANTS; coarse read/write/admin privileges; mysql_native_password auth; optional TLS.
  • Observability — SHOW STATUS counters, SHOW PROCESSLIST, an optional slow-query log (--slow-query-ms), and a Prometheus /metrics endpoint.
  • Replication & HA — asynchronous primary → read-replica streaming, optional semi-sync, and automatic failover via Raft-style leader election (elyrasql cluster).
  • Introspection — SHOW TABLES/COLUMNS/INDEX, SHOW CREATE TABLE, DESCRIBE, and a queryable INFORMATION_SCHEMA.

See the documentation site and limitations for the full, honest picture.

Architecture

    MySQL clients / drivers          your process (Rust / C / PHP / Python)
              │  MySQL wire protocol             │  in-process, no socket
     ┌────────▼────────┐                ┌────────▼─────────┐
     │  elyra-server   │                │   elyra-embed    │
     │ elyra-wire+tokio│                │ elyra-embed-capi │
     └────────┬────────┘                └────────┬─────────┘
              └───────────────┬──────────────────┘
                     ┌────────▼────────┐
                     │  elyra-engine   │  sqlparser (MySQL dialect) → plan → execute
                     └───┬────────┬────┘
         ┌───────────────▼──┐  ┌──▼───────────┐  ┌──────────────┐
         │  elyra-storage   │  │  elyra-olap  │  │ elyra-vector │
         │  single file     │  │  analytics   │  │  ANN / HNSW  │
         │  ACID (redb)     │  │  (columnar)  │  │              │
         └──────────────────┘  └──────────────┘  └──────────────┘
                    all share  ▲  elyra-core (types, values, errors)

Both entry points run the same engine, over the same file format. The server adds the network; embedded mode removes it.

Crates:

Crate Responsibility
elyra-core Shared value/type model, errors, branding constants
elyra-storage Single-file ACID key/value engine, namespaced keyspace
elyra-engine SQL parsing (MySQL dialect), planning, execution
elyra-olap Parallel, streaming group-aggregation kernel
elyra-vector Vector column type + ANN search (exact + HNSW)
elyra-wire First-party MySQL wire protocol (handshake, auth, TLS)
elyra-server Connection handling, auth verification, prepared statements
elyra-cli elyrasql binary (serve + admin)
elyra-embed The engine as an in-process library (no server, no socket)
elyra-embed-capi C ABI over elyra-embed, for hosts with an FFI

Third-party engines are internal dependencies only — nothing user-facing (APIs, errors, CLI, wire handshake) exposes their names. Everything is ElyraSQL.

Quick start

# Build
cargo build --release

# Run the server (creates elyra.edb if missing)
./target/release/elyrasql serve --data elyra.edb --listen 127.0.0.1:3307

# With authentication + TLS
./target/release/elyrasql serve \
    --user root --password s3cret \
    --tls-cert server.crt --tls-key server.key

# Connect with any MySQL client
mysql -h 127.0.0.1 -P 3307 -u root -p
SELECT 1;
SELECT 1 + 1 AS two;
SELECT 'hei fra ElyraSQL' AS msg;
SELECT VERSION();   -- 8.0.12-ElyraSQL-1.12.18

Embedded (no server)

The engine also runs as a library inside your own process, against the same file format — useful for test suites, CLI tools and single-tenant apps.

use elyra_embed::{Database, Value};

let db = Database::temporary()?;          // deleted when it drops
let conn = db.connect();

conn.execute("CREATE TABLE users (id INT PRIMARY KEY AUTO_INCREMENT, name TEXT)")?;
conn.execute("INSERT INTO users (name) VALUES ('Ada')")?;

let rows = conn.query("SELECT name FROM users")?;
assert_eq!(rows.get(0, "name"), Some(&Value::Text("Ada".into())));

C, and anything with an FFI, goes through elyra-embed-capi:

cargo build -p elyra-embed-capi --release
cc app.c -I crates/elyra-embed-capi/include -L target/release -lelyrasql -o app

See the embedded guide for the one-writer rule, the blocking contract and what a server still gives you that in-process does not.

AI agents (MCP)

Point an agent at a database file and it gets schema introspection and SQL — no server, no port, no driver:

elyrasql mcp --data app.edb

Read-only by default: writes are refused by the engine's privilege check, not by scanning the SQL for dangerous keywords. --allow-writes permits INSERT/UPDATE/DELETE while DROP TABLE and GRANT stay refused. See the MCP guide.

Configuration

Flag / env Default Meaning
--data / ELYRASQL_DATA elyra.edb Path to the single DB file
--listen / ELYRASQL_LISTEN 127.0.0.1:3307 Bind address (MySQL proto)
RUST_LOG info Log level

Performance

See the benchmark page for a reproducible, native-Linux head-to-head comparison against MySQL 8.4 and PostgreSQL 17.

Highlights (200k rows, same host): ElyraSQL beats MySQL and Percona on full-table COUNT and bulk insert and matches PostgreSQL on full-scan COUNT; PK lookup ~0.2 ms, selective join ~0.27 ms, cached vector ANN ~0.3 ms, bulk ingest ~183k rows/s.

1.6.0 makes row-oriented paths read only the columns a query uses, so their cost no longer scales with how wide the rows are. Same data file, 1.5.1 vs 1.6.0, 200k rows: ORDER BY x LIMIT 100 over 12-column rows 95 ms → 31 ms (MySQL 8.4: 55 ms), a 1:1 join on a primary key 492 ms → 150 ms, and a join emitting 40M rows 33.3 s → 1.13 s. An unbounded sort and a plain scan are unchanged — nothing was traded away. Non-equi joins (ON a.id < b.id) now stream instead of being refused by the memory ceilings: bounded memory, but O(n x m) time, so bound them with ELYRASQL_QUERY_TIMEOUT_MS.

Install

Linux static binaries (x86_64 and aarch64) and a native Apple Silicon macOS binary are attached to each GitHub Release. Intel Macs are not supported.

# Linux x86_64 (use ARCH=aarch64 on ARM Linux)
VER=X.Y.Z
ARCH=x86_64
curl -L -o elyrasql.tar.gz \
  "https://github.com/kwhorne/ElyraSQL/releases/download/v${VER}/elyrasql-${VER}-linux-${ARCH}.tar.gz"
tar xzf elyrasql.tar.gz
./elyrasql-${VER}-linux-${ARCH}/elyrasql serve
# Apple Silicon, macOS 11+
VER=X.Y.Z
curl -L -o elyrasql.tar.gz \
  "https://github.com/kwhorne/ElyraSQL/releases/download/v${VER}/elyrasql-${VER}-macos-aarch64.tar.gz"
tar xzf elyrasql.tar.gz
./elyrasql-${VER}-macos-aarch64/elyrasql serve

Docker

Multi-arch image (amd64 + arm64) on GHCR:

docker run -p 3307:3307 -v elyra:/var/lib/elyrasql ghcr.io/kwhorne/elyrasql:1.12.18
# with auth + a persistent volume:
docker run -p 3307:3307 -v elyra:/var/lib/elyrasql \
  -e ELYRASQL_USER=root -e ELYRASQL_PASSWORD=secret \
  ghcr.io/kwhorne/elyrasql:latest

Deploying on Ubuntu 24.04+

sudo ./packaging/deploy.sh            # build, install, systemd, start
# or with credentials + TLS:
ELYRASQL_USER=root ELYRASQL_PASSWORD=secret \
  ELYRASQL_LISTEN=0.0.0.0:3307 sudo -E ./packaging/deploy.sh
journalctl -u elyrasql -f

Learn more

License

MIT — see LICENSE. Use it freely, in commercial and open projects alike.