[Sqlalchemy-tickets] Issue #3398: Make explicit primary key requirement in docs for automap table r
Brought to you by:
zzzeek
|
From: Sam Z. <iss...@bi...> - 2015-04-29 02:00:59
|
New issue 3398: Make explicit primary key requirement in docs for automap table reflection https://bitbucket.org/zzzeek/sqlalchemy/issue/3398/make-explicit-primary-key-requirement-in Sam Zhang: The FAQ/ORM section makes clear that a primary key is required for a table to be mapped: http://docs.sqlalchemy.org/en/latest/faq/ormconfiguration.html#how-do-i-map-a-table-that-has-no-primary-key. However this was unclear from the automap documentation, as can be seen in the following StackOverflow questions: http://stackoverflow.com/questions/23765681/sqlalchemy-automap-does-not-create-class-for-tables-without-primary-key http://stackoverflow.com/questions/29905160/automap-reflect-tables-within-a-postgres-schema-with-sqlalchemy (me) and on the mailing list: https://groups.google.com/forum/#!topic/sqlalchemy/8F2tPkpR4bE |