TessariDB
Get started

Database engine · Rust · one binary

The stack around the model, in one store.

Eleven engines. One transaction. One thing to run.

The database, the search engine, the vector index, the cache, the queues, the event log, the map, the graph, the files and the secrets an AI application needs — one binary, one language, one transaction. A row store and a column store, both — the same records, projected either way. Not the fastest at any one of them. Enough at all of them, for the projects that never push one to its limit.

Also built on it

TessariDB S3 is S3-compatible object storage in Rust. Object bytes erasure-coded across your nodes, zones and regions; every bucket, key, version and policy a transaction in TessariDB.

  • Unmodified S3 clients and SDKs
  • Reed-Solomon erasure sets across zones
  • Regions, each a cluster of its own
  • Versioning, Object Lock, lifecycle
  • Events into a TessariDB topic
  • A console that keeps a record

0.8.1 · BUSL-1.1 server, Apache-2.0 Rust SDK and CLI

s3.tessaridb.com →

The read, in full

A keyword match, a filter and a nearest neighbour.

One statement, resolved by the store rather than intersected in your application. The answer below is the node’s own — including the trailer, which is how it reports that the read went through an index rather than across a scan.

A keyword match, a filter and a nearest neighbourtessariql
DEFINE INDEX by_body ON chunks FIELDS body SEARCH;
DEFINE INDEX by_at ON chunks FIELDS at VECTOR euclidean;

SELECT body FROM chunks
WHERE body MATCHES 'lovelace' AND doc = 'notes'
ORDER BY vector::euclidean(at, [0.1, 0.0])
LIMIT 5;
the node answers
1: { body: 'Ada Lovelace wrote the first program' }
(1 record(s), via index)

The shape of the problem

A dozen tools, and the seams between them.

A project built around a model almost always needs search, a database for everything else, and a queue. Then a cache, a lock, an event log, files, a map of where things are, the relations between them, and a place for the secrets it must not leak. Each is good at its own job. Standing all of them up, upgrading them, backing them up and keeping them in step is the job nobody planned for — and most projects never load any one of them hard enough to need the specialist.

TessariDB is eleven access paths over one substrate — not eleven services behind a façade. A question that spans them is one statement, and a write that spans them is one transaction, rather than an intersection you compute in application code against systems that disagree about what time it is.

Underneath them is TessariDB’s own storage engine, TessariKV, the heart of the database: pure Rust, lock-free first, with a stable file format.

A database

Records — declared or schemaless, joined, in transactions

A search engine

Full-text in five languages: scored, prefix, infix, fuzzy — one search over many tables

A vector index

Nearest neighbours, exact unless you ask otherwise

A re-ranking step

ORDER BY FUSE — words, meaning and place by rank

A cache, a lock

Keys that expire, counters, a limit that evicts, SET … IF ABSENT

A job queue

Claims that lapse when a worker dies

An event log

Topics, with each reader's position in the store

A geo database

Shapes, radius reads, nearest-first, cells for a map

A graph database

Edges as records, traversed from any of them

Object storage

Files, in the same transaction as their records

A place for secrets

Fields sealed before they are stored

Time-series, an audit trail

Windows, a retention floor, VERSION and a change feed

The seam is sharpest where retrieval lives: a vector database, a document store, a search index and something holding the originals, kept in step by a write that has to land in four places.

Documents

Records, nested, schemaless or declared

Graph

Edges between records, traversed

Full-text

Words inside text, scored

Vectors

Similarity between embeddings

Geometry

Shapes on the sphere, in metres

Key-value

One value under one key — expiring, counted, bounded

Files

Bytes, in chunks

Time-series

Events in the order they happened, windowed and rolled up

Queues

Work handed out one holder at a time

Topics

Events every reader sees once, in commit order

Vault

Secrets, sealed before they are stored

Every engine, and what it costs →

Existing clients

The clients you already run.

Change the address they dial, and nothing else. The node speaks both protocols itself, on their usual ports, and keeps what arrives in its own topics and spaces, where one TessariQL statement reads it beside everything else and one transaction writes it. Producers, consumer groups and admin tools on the Kafka side; strings, hashes, lists, sets, sorted sets, streams, pub/sub and MULTI on the RESP side. And as of 0.46.0, the relational wire protocol on port 5432: psql and psycopg connect, authenticate and read the store's own tables — joins, aggregates and transaction blocks included, off until TESSARIDB_PG is set.

On a cluster a client may connect to any node: a write sent to one that does not lead is carried to the one that does. What is not served is said rather than faked — Kafka transactions and SCRAM sign-in are refused, catalog introspection is the named head of the wire port's defer list, and a command the node does not serve is answered as unknown.

your application, unchangedKafka clientbootstrap = node:9092psql · psycopghost = node, port 5432RESP clienthost = node, port 6379one TessariDB node:9092 Kafka protocol→ a topic:5432 relational wire→ its own tables:9080 TessariQL reads all three:6379 RESP→ a spacewhat changed in the application: three addresses
All three arrows are protocols the clients already speak. Behind them are the store’s own engines, which one TessariQL statement reads together.
the client works withthe store keepsKafkatopic, partitionstopic, partitionsgroup’s committed offseta named reader positionrelational wiretable, rows, columnsthe store’s own table, recordsSELECT · joins · aggregatesone TessariQL readBEGIN … COMMITone store transactioncatalog introspectionnamed on the defer listRESPstrings, counters, expirykeys in a spacehash · list · set · sorted seta container on one keyMULTI … EXECone transactionstreama topicPUBLISHthis node’s subscribers
A stream entry and a Kafka record land in the same kind of topic, so a Kafka consumer, a stream reader and TessariQL all read the same messages. A SQL row and a record are the same thing read over different wires, so psql and a driver see what TessariQL sees. Published messages are delivered, never stored.

Switching a client by its address, and every command served →

Advantages

What you get.

One transaction across all of it

Text, vectors, shapes, graphs, queues, files and a cache in one store — a write that touches six of them lands in all six or in none.

The protocols your clients already speak

The relational wire, Kafka and RESP on their usual ports — change the address, keep the client, and SQL reads what the stream wrote.

Backups that verify themselves

A snapshot by default, incremental deltas over a base, and point-in-time recovery at any instant — a truncated increment refuses by name rather than restoring a lie.

A cluster that grows by declaration

Replicas, bounded auto-sharding, automatic failover and cross-cluster replication — each step one statement, never a migration to another product.

Reads that name their consistency

LEADER, SNAPSHOT or STALE WITHIN — the caller says which state may answer, the bound refuses where it cannot be met, and a bounded read carries its copy’s age.

Said rather than faked

What the store does not serve refuses by name on every surface — a driver, a client library or a SQL statement gets the limit, not an approximation.

Rights that stop at the row

GRANT … WHERE (<predicate>) narrows a grant to the rows a TessariQL predicate reaches, and ALTER TABLE … ENABLE ROW SECURITY turns the enforcement on — reads filter on every path, writes refuse outside the guards, and the change feed shows a reader only what the guards reach.

Partial aggregation, as records

state::of(<fold>) answers what a fold's accumulator holds, a fold_state field stores it, and state::merge combines states of one fold — roll up a day from its hours without re-reading the raw events, and a state of the wrong fold refuses rather than mis-adds.

A columnar layout you declare

STORE COLUMN SORT BY g lays each batch's chunks out in key order, and a chunk-head index seeks only the chunks that can match — a selective read over 82 000 rows seeks 2 heads instead of 11, with the answers proven equal to the unsorted read's.

For AI applications

What follows from the same shape.

No dual write

The record, its embedding, the document it came from and the edges between them land in one transaction, or none of them do. There is no reconciliation job because there is nothing to reconcile.

Exact unless you ask otherwise

A vector read is the exact answer until the statement says APPROXIMATE out loud. The ground truth you measure recall against comes from the same store as the answer, not a second one.

Provenance is a traversal

A citation is an edge, so which document did this answer come from is a query rather than a column convention half the pipeline forgets to fill in. The originals go in a bucket in the same transaction, so the thing you cite and the thing you chunked cannot drift apart.

The store remembers what it said

VERSION reads the store as it stood, so why did the agent answer that last Tuesday is a statement rather than an archaeology project. It goes back as far as reclamation has left, and below that a read is refused rather than answered from whatever happens to remain.

Catch up, do not poll

A subscriber follows a table over the wire and is addressed by position in the log, not by a timestamp — so it resumes exactly where it stopped, and starting from zero replays everything the log still holds.

Secrets it cannot read back

A field declared to the vault is sealed before the record is encoded. The index, the change feed, the replication log and every backup carry ciphertext, so the credentials an agent works with are not one careless SELECT away from a transcript.

The whole argument, with the statements →

AI in the database

The model is a call away, inside the read.

A provider is a declaration — endpoint, model, a call budget, a timeout, and the key named as a vault secret that is never written to the catalog, the log or a backup. Then ai::generate is a function like any other: in a SELECT over a million rows, or in a CREATE that labels a record as it lands. The automation is a statement, not a service you keep in step.

Labelled as it lands

ai::classify(body, ['billing', 'technical']) in a CREATE computes the label in the same transaction as the write. There is no enrichment pipeline to keep in step, because the label and the record cannot drift apart.

Bounded, and says so first

Every call spends from the provider's declared budget, and an empty bucket refuses rather than queues — a queued model call inside a read is a stalled read. EXPLAIN reports ai-calls: n before you pay it.

The key never travels

It is read from the vault at call time, held in a buffer that zeroizes, sent in one header, and never logged, stored or answered. A refusal carries the provider's status class — never its body, which could echo the request.

Any endpoint that speaks the shape

The contract is chat-completions, which hosted and local providers both serve. Declaring a second provider is a statement, not a migration — and summarize, extract and translate ride the same call.

A provider, declared — then a label per recordtessariql
DEFINE AI PROVIDER support
    URL 'https://models.example.com/v1/chat' MODEL 'a-model'
    KEY VAULT secrets FIELD support_key
    BUDGET 1000 PER 1h TIMEOUT 10s;

CREATE tickets = {
  body: 'I was charged twice this month',
  team: ai::classify(body, ['billing', 'technical', 'other'])
};
the node answers
1: { team: 'billing' }
(1 record(s))

The five calls, and what each refuses →

The trade, said out loud

Not the fastest at any one thing. Enough at all of them.

A specialist built for one job will beat a general store at that job, and nothing here pretends otherwise — there is no benchmark on this site, because none has been measured and published. What most projects pay for is not the last fraction of one system’s speed. It is running eleven of them: their versions, their backups, their auth models, and the reconciliation between them. That is the cost this store removes.

It grows with the project. In memory for a test, a directory on disk for a service, followers for copies, automatic failover, tables split by key range across machines, and two writers on one range — the same binary at every step. The limits are stated where they apply: a table is split only if it was declared split, a split moves no record already written, and the largest shard fits one machine.

A project may one day outgrow one engine of it. The data is one log behind a published protocol and five clients, so moving one workload out is a decision you take then — not a cost you pay on the first day. When one store is the wrong answer →

Stream ingestion, from a topic or from a broker

Read a topic into a table, each message once.

One statement declares a consumer — which topic, which group, how a message becomes a record and where it lands — and the node runs it, starts it again after a restart and reports on it. No connector beside the database, and no worker to keep alive.

When the topic is one of the store’s own, the guarantee is exactly once into the store: the group read, the record writes and the acknowledgement commit in one transaction, so a crash or a refused commit leaves the message unread and nothing written.

A topic, read into a tabletessariql
DEFINE TOPIC CONSUMER orders_in
    FROM orders
    GROUP 'into-rows'
    INTO order_rows
    IDENTITY order_id
    MAP amount AS total
    ON FAILURE quarantine;

From a Kafka broker you already run, DEFINE KAFKA CONSUMER reads the same way — and the guarantee changes, because the broker’s offset is a second commit in a second system: at-least-once, applied idempotently by record identity. The store commit goes before the offset commit, which chooses duplicates over loss, and IDENTITY is what makes a duplicate land on the record it already wrote.

Every clause, and what each one settles →

Getting it running

One binary. No cluster to stand up first.

In memory for a test, on disk for a service, and the same process serves it over the wire and over HTTP. There is nothing to provision before an experiment, which is the difference between trying this today and putting it on a list.

The published image asks for nothing at all — no repository access, no toolchain, no C++ compiler.

From nothing to a first answershell
docker run -p 9080:9080 -p 8000:8000 tessaridb/tessaridb

tessaridb                     # or the binary: a store in memory
tessaridb ./data              # a store on disk
tessaridb ./data --serve 127.0.0.1:7654

Try it against your own data.

Free in production, including inside a commercial company. The one restriction is reselling it to third parties as a database service.