Skip to content

featherweight.postgres

postgres

PostgresDatabase: the run log in Postgres, for a deployment. SqliteDatabase is the one for local development.

It implements the same Database abstract class with the same records and rows, with native types (timestamptz, jsonb, boolean, an identity column). The tables live in their own schema (default featherweight), so they never collide with an application's tables. There is no result store for Postgres: where a deployment keeps the outputs that resuming needs is for the user to decide, so pass results= to the runner. Needs the extra featherweight[postgres] (psycopg, version 3).

PostgresDatabase

PostgresDatabase(dsn: str, schema: str = 'featherweight')

Bases: Database