sqltrack.engines.postgres package

This module provides functionality to enable using PostgreSQL as backend.

class sqltrack.engines.postgres.PostgresEngine(config)[source]

Bases: Engine

connect(cursor_factory=<class 'psycopg.Cursor'>)[source]

Returns database connection objects.

data_dir()[source]

Returns the path to the directory where supporting files for this engine are stored.

map_type(client, typ)[source]

Given Python type typ, returns SQL type as string.