Postgres Table
This class stores result log data in a Postgres table.
It is much better choice for production usage compared to Snowflake table, since OLTP databases are better suited for small transactions and indexed lookups.
Internally this storage relies on brand new psycopg3 package.
Setup
Install SnowKill with additional dependency for Postgres:
Setup and run a Postgres instance.
Create a Postgres table with the following structure:
Please note the full name of created table. It should be passed to PostgresTableStorage
constructor.
Example
Usage notes
It is important to import
PostgresTableStorage
separately, usingfrom snowkill.storage.postgres_table import PostgresTableStorage
. This storage class is not automatically exported withsnowkill
module, since it would trigger import error ifpsycopg
is not installed.
Last updated