Test Harness
WorkaDB can be embedded in unit and integration tests to provide a PostgreSQL-compatible database without spinning up a server.
Pattern
- Initialize WorkaDB in a temporary directory.
- Run migrations and execute SQL fixtures.
- Shut down the engine and delete the temp directory when the test completes.
This keeps tests deterministic and fast while still exercising PostgreSQL behavior.