The architecture involves two primary components:
- StackQL Server: This server starts a
stackql
server accepting stackql queries using the PostgreSQL wire protocol. - PostgreSQL Server: Backend database server used for relational algebra and temporary storage (for materalized views).
graph TD;
subgraph Container;
B[StackQL Server];
C[PostgreSQL Instance];
end;
A[StackQL Client] <-- postgre wire protocol port 7432 --> B;
B <-- gets data from --> E[Cloud/SaaS Providers];
B <-- uses --> C;
To run the container, execute the following command:
docker build --no-cache -t stackql_postgres .
docker run -d -p 7432:7432 stackql_postgres
To submit a query to the StackQL server using psql
, use the following command:
psql -h localhost -p 7432 -U stackql -d stackql