tmsqlite provides an SQLite-backed storage layer for Gordian's tmstore package.
This module defaults to using github.com/mattn/go-sqlite3/ for a CGo-backed SQLite driver. If CGo is unavailable, it falls back to the modernc.org/sqlite driver, which is a pure Go implementation of SQLite.
If CGo is available and you still prefer to run the pure Go driver,
use the purego
build tag, e.g. go test -tags=purego ./...
.
tmsqlite passes the tmstore compliance tests and it runs with gcosmos, but until there is a tagged release, you should assume that the database schema may change in a backwards-incompatible way.
The tmsqlite source code is available under the Apache 2.0 license.
Copyright (c) 2024 Strangelove Crypto, Inc.