AetheriusDB exposes three wire protocols at the same time. They all talk to the
same engine over the same data — pick the one that fits your ecosystem.
Prefer a terminal? The official aesql CLI speaks both
the native protocol and Flight SQL from one binary — a psql-style REPL plus
compressed database export/import (aesql export / aesql import).
AetheriusDB speaks the PostgreSQL wire protocol on port 5678 by default, so
existing tools work unchanged.
Verify the port first. The daemon’s pgwire port is whatever --port
was given at launch (some installs use 5680, e.g. because macOS already
binds 5678 to its rrac service). The native Aether-Sync listener is a
separate port (--native-port, default 5679) and does not answer
the Postgres handshake — pointing a psql/psycopg client at it hangs. Confirm
you have the right port with:
It should print an AetheriusDB <version> banner (e.g. AetheriusDB 0.1.17).
The database self-identifies as AetheriusDB — SELECT version() no longer
impersonates PostgreSQL. (SHOW server_version still returns
15.0 (AetheriusDB <version>): libpq/psycopg/JDBC parse the leading 15.0
token to gate protocol features, so the build is appended as a suffix.)
import psycopg
with psycopg.connect(host="127.0.0.1",port=5678,
user="aether",dbname="aetherius",password="") as conn:
Both connect over the same pgwire endpoint. asyncpg drives the extended
(binary) protocol; SQLAlchemy uses the standard postgresql+psycopg /
postgresql+asyncpg dialects — the engine returns a PostgreSQL 15.0 (AetheriusDB …) version token so ORM dialect-detection works.
A connection is bound to one database. pgwire clients pass it as the standard
dbname (psql -d, database= in a driver, /dbname in a URL); the native
client passes it in the connection handshake. Inside a session you can switch, and
create or drop databases, with ordinary statements:
SHOW DATABASES; -- list databases
CREATEDATABASEanalytics; -- disk-first; recovers on restart
USE analytics; -- switch the session's active database
SELECT current_database(); -- confirm the active database
DROPDATABASE analytics; -- (cannot drop the default or the active database)