psql uses the simple query protocol, which Airhouse supports completely, so it’s the most reliable way to explore your data.
Connection parameters
Airhouse uses the Postgres
database parameter to pick your Airhouse database. If the database doesn’t exist, the connection fails with database "..." does not exist (SQLSTATE 3D000).
Connect
Meta-commands
These psql meta-commands are supported:
To see the columns of a table, use DuckDB’s
DESCRIBE or information_schema:
INSERT 0 2, UPDATE 1, SELECT 3, and CREATE TABLE.
Load data from a local file
Use psql’s\copy to stream a local CSV file into a table:
\copy sends the file over the connection with COPY ... FROM STDIN, so the file only needs to exist on your machine. Loading data requires the writer or admin role.
Run a single statement
Next steps
- Drivers: Python, Node.js, Go, and Java
- BI and SQL tools: DBeaver, Tableau, and other GUI clients