diff options
author | Roman Podolyaka <roman.podolyaka@gmail.com> | 2013-06-09 19:07:00 +0300 |
---|---|---|
committer | Roman Podolyaka <roman.podolyaka@gmail.com> | 2013-06-09 23:49:55 +0300 |
commit | c69fe4acf8929856735e5d90adb7f6b6d5ebcd46 (patch) | |
tree | e193633bdf96f536d826122a1186d067dbc9890f /lib/sqlalchemy/testing | |
parent | f65ddee93a7143924b417e1c988802f10d0c7b11 (diff) | |
download | sqlalchemy-pr/4.tar.gz |
Add basic support of unique constraints reflectionpr/4
Inspection API already supports reflection of table
indexes information and those also include unique
constraints (at least for PostgreSQL and MySQL).
But it could be actually useful to distinguish between
indexes and plain unique constraints (though both are
implemented in the same way internally in RDBMS).
This change adds a new method to Inspection API - get_unique_constraints()
and implements it for SQLite, PostgreSQL and MySQL dialects.
Diffstat (limited to 'lib/sqlalchemy/testing')
0 files changed, 0 insertions, 0 deletions