Small footprint.
Serious database.
All the database you need.
Right where your application lives.
A modern SQL database written in Go. Embed it in your app or run it as a MySQL 8.4-compatible server. Disk-paged storage, pure Go.
$ go get github.com/cobaltdb/cobaltdb@v0.7.0COMPLETE BY NATURE.SQL + JSONACID transactionsPure GoBuilt-in encryptionMySQL 8.4
Less infrastructure.
More possibility.
Your database should move your application forward.
A capable engine, without the operational weight.
Powerful at the core.
Simple at the edges.
4 KiB disk pages, checksums and a bounded page cache.
One cohesive engine you can run your way.
SELECT * FROM ideas;Go all the way.
A pure Go runtime. No CGO toolchain, no C bindings. Cross-compile with the tools you already use.
100% GoKeep the promises.
Row locks, deadlock detection and write-ahead logging keep concurrent writes consistent and durable.
ACID + WALMake privacy a primitive.
Built-in AES-256-GCM encryption, row-level security policies and audit logging for sensitive workflows.
Security built inYour next idea.
Already connected.
Go from import to your first query.
Pick the way you want to build.
db, err := engine.Open("app.db", nil)
if err != nil { log.Fatal(err) }
defer db.Close()
ctx := context.Background()
rows, err := db.Query(ctx,
"SELECT name FROM projects WHERE stars > ?", 100)
if err != nil { log.Fatal(err) }
defer rows.Close()Real SQL.
Room for more.
Tables, joins, indexes and the SQL you already know. Keep your data structured and your queries expressive.
Explore the SQL referenceSELECT name, language, stars
FROM projects
WHERE language = 'Go'
ORDER BY stars DESC
LIMIT 3;| name | language | stars |
|---|---|---|
| cobaltdb | Go | 1,280 |
| atlas | Go | 864 |
| lumen | Go | 512 |
More data on disk.
Less pressure on memory.
Tables live on disk, not in the Go heap.
Cache pages. Stream results. Spill large working sets.
Peak RSS · streamed SELECT
32,768 cached pages by default
Checksummed storage pages
The v0.7.0 repository reports 83 MB peak server RSS while streaming a SELECT over 1M rows, compared with 881 MB before paged storage. Cache and page sizes are configuration defaults, not speed measurements. RSS varies with workload, configuration and environment.
One engine.
Two ways to make it yours.
Start with the deployment that fits.
Keep the same SQL foundation.
Inside your process.
Out of your way.
Import the Go engine and open a database. An ideal starting point for local tools, desktop apps, edge services and self-contained applications.
A familiar connection.
A fresh foundation.
Use MySQL 8.4 clients and familiar ORMs. The upstream release compares drivers, mysqldump and application workloads against MySQL 8.4; check the documented differences for your deployment.
01What is CobaltDB?+
CobaltDB is an open-source SQL database written in Go. You can embed the engine directly in a Go application or run a standalone server with a MySQL-compatible protocol surface.
02Do I need a C compiler?+
No. The database runtime does not require CGO or a C compiler. You can build and cross-compile with the Go toolchain. The Go race detector is a separate development check and may require a CGO toolchain.
03Is it a drop-in replacement for MySQL?+
CobaltDB v0.7.0 targets MySQL 8.4 SQL and wire compatibility, tested with clients, ORMs, mysqldump and real application installs. Known differences remain: read-committed isolation, 64-bit INTEGER and FULLTEXT scans, among others. Review the compatibility matrix and validate your workload.
04Is CobaltDB ready for my production workload?+
The project describes CobaltDB as a production-oriented, single-node database candidate. Test your workload, recovery process and client compatibility. Replication is not automatic high availability or failover. The production guide explains the operational boundaries. Read the production guide →
05Can I use it commercially?+
Yes. CobaltDB is available under the MIT license. You can use, modify and distribute it, including in commercial projects, under the terms of that license.
Your next great thing
starts with a simple import.
Pure Go. MIT licensed. Built for your ideas.