db_backend in the config:
serve --db (default build/gligabao.db).
All SQL lives in the backend packages, each with its own schema and dialect; the rest of the code calls routing functions that dispatch to the backend in use:
- Datasets and the LLM call log:
internal/db/relational(sqlite,postgres). - The knowledge graph (artifacts, entities, edges):
internal/db/graph(currentlysqliteandpostgrestables in the same database; dedicated graph databases are meant to be added there).
Tests
Tests run against SQLite, and also against PostgreSQL whenPOSTGRES_TEST_DSN is set (each test gets a temporary schema):