diff options
author | ndparker <ndparker@users.noreply.github.com> | 2014-09-24 00:13:40 +0200 |
---|---|---|
committer | ndparker <ndparker@users.noreply.github.com> | 2014-10-05 00:54:09 +0200 |
commit | 00018f0748a2eac323248c5d80c28a127907344a (patch) | |
tree | 1b0ce2f321f7951b1992224526fe08f7b60e18b2 /lib/sqlalchemy/exc.py | |
parent | 360477cc3af826b5056039b9a19ec3ecb2b94ede (diff) | |
download | sqlalchemy-pr/141.tar.gz |
specialize schema reflection warningspr/141
Diffstat (limited to 'lib/sqlalchemy/exc.py')
-rw-r--r-- | lib/sqlalchemy/exc.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exc.py b/lib/sqlalchemy/exc.py index a82bae33f..2c61def13 100644 --- a/lib/sqlalchemy/exc.py +++ b/lib/sqlalchemy/exc.py @@ -368,3 +368,35 @@ class SAPendingDeprecationWarning(PendingDeprecationWarning): class SAWarning(RuntimeWarning): """Issued at runtime.""" + + +class SAIndexReflectionWarning(SAWarning): + """ Issued if an index cannot be reflected """ + + +class SAOmittedIndexReflectionWarning(SAIndexReflectionWarning): + """ Issued if an index is ignored, because of omitted columns """ + + +class SAIncompleteIndexReflectionWarning(SAIndexReflectionWarning): + """ Issued if an index is missing columns or predicates """ + + +class SAUnsupportedIndexReflectionWarning(SAIndexReflectionWarning): + """ Issued if an index type is not supported and hence not reflected """ + + +class SATypeReflectionWarning(SAWarning): + """ Issued if a type cannot be reflected """ + + +class SAUnknownTypeReflectionWarning(SATypeReflectionWarning): + """ Issued if the reflected type is not known to SQLAlchemy """ + + +class SAUnparsableTypeReflectionWarning(SATypeReflectionWarning): + """ Issued if the type info from the DB could not be parsed """ + + +class SAIncompleteTypeReflectionWarning(SATypeReflectionWarning): + """ Issued if the type reflection is incomplete """ |