1. Alex Grönholm
  2. sqlacodegen
  3. Issues

Issues

Issue #14 on hold

Support for OID in PostgreSQL is missing

mltmlt
created an issue

Some system tables lack primary key but use OID instead.

The following fails to generate a proper model

sqlacodegen postgresql://postgres@127.0.0.1/postgres --tables pg_database --schema pg_catalog --outfile pg_database.py

with KeyError: u'oid'.

Comments (2)

  1. Alex Grönholm repo owner

    Now that I have seen the traceback this generates, I can conclude that sqlalchemy's reflection is at fault, not sqlacodegen (at least at this point). You could file a bug against sqlalchemy instead.

  2. Log in to comment