Getting startedInstall CobaltDB and run your first SQL query in Go.SQL & JSONTables, indexes, parameterized queries, JSON and transactions.ArchitectureUnderstand the query engine, B+ tree storage and write-ahead log.Server & clientsRun the standalone server and connect over the MySQL wire protocol.Production guidePlan TLS, security, backups, observability and deployment boundaries.Performance benchmarksB+ tree and SQL benchmark results, methodology and hardware.FeaturesSQL, transactions, encryption and a pure Go runtime.Brand assetsDownload the CobaltDB SVG logo and icon.
K to open ESC to close
Documentation

Architecture

Understand the query engine, B+ tree storage and write-ahead log.

One engine, two entry points

Embedded applications call the Go engine directly. The standalone server adds network protocols, authentication and operational services around the same database foundation.

The embedded path avoids a network round trip. The server path gives other processes a connection over the supported MySQL protocol surface.

From SQL to rows

LayerResponsibility
EngineDatabase lifecycle, query API and transaction entry points
QuerySQL lexing, parsing and statement representation
CatalogTables, expression evaluation and statement execution
B+ treeIndexed key storage and lookup
StorageBuffer pool, persistent pages and write-ahead logging

The repository organizes these layers under pkg/. Use that code and its regression tests as the authority for specific behavior.

Durability & recovery

The persistent storage path uses a write-ahead log and checkpointing. Transaction commits and page flushing must preserve the ordering that allows recovery after interruption.

Keep the database and associated files together. Use the supported backup facilities for consistent backups instead of copying a live database file by itself.

Pick the right persistence mode. In-memory mode is deliberately ephemeral. Measure persistent workloads separately from in-memory benchmarks.

Explore the internals

See the architecture overview and the detailed architecture guide. For practical deployment boundaries, continue to the production guide.

Source-aligned guide · CobaltDB v0.6.1Suggest an improvement