Skip to main content

SQLAlchemy definitions for PostgreSQL catalog tables

Project description

SQLAlchemy PostgreSQL Catalog Definition

SQLAlchemy schema definition (partially reflected) for the PostgreSQL catalog (pg_catalog schema)

Example

Simple example:

>>> import sqlalchemy

>>> import sqlalchemy_pgcatalog

>>> engine = sqlalchemy.create_engine("postgresql://localhost:5432/examples")

>>> list(engine.execute(select([sqlalchemy_pgcatalog.Lock])))
[('relation', 320034, 11090, None, None, None, None, None, None, None, '2/77352', 23112, 'AccessShareLock', True, True),
 ('virtualxid', None, None, None, None, '2/77352', None, None, None, None, '2/77352', 23112, 'ExclusiveLock', True, True)]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
sqlalchemy_pgcatalog-0.1.1.zip (4.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page