Developer beta 0.1.0-beta.1 documentation. The build is not available for download yet; these pages describe the beta as built and tested on Linux x86-64.
Getting started
# build (the pinned toolchain, rust/rust-toolchain.toml)
cd rust && cargo build --release
export PATH="$PWD/target/release:$PATH"
# create a database directory and run SQL against it directly
holadb init ./mydb
holadb query ./mydb "CREATE TABLE users (id BIGINT PRIMARY KEY, email TEXT NOT NULL, age INT)"
holadb query ./mydb "INSERT INTO users VALUES (1, 'ann@example.com', 31), (2, 'bob@example.com', NULL)"
holadb query ./mydb "SELECT id, email FROM users WHERE age > 30"
# serve it (native protocol on 7433, PostgreSQL protocol on 5433)
holadb serve ./mydb --listen 127.0.0.1:7433 --pg 127.0.0.1:5433
# from another terminal
psql postgresql://me@127.0.0.1:5433/holadb -c "SELECT count(*) FROM users"
holadb shell holadb://127.0.0.1:7433
holadb studio holadb://127.0.0.1:7433 # then open http://127.0.0.1:7480/
Every acknowledged write is durable (written to the write-ahead log and synced before the reply); a crash never loses committed data and the next start recovers deterministically.
Next: Quick start for a fuller tour, SQL for what the query language supports, and a SDK for your language.