UnsupportedCompilationError
is a class within the sqlalchemy.exc
module of the SQLAlchemy project.
ArgumentError,
DataError,
DatabaseError,
IntegrityError,
InvalidRequestError,
NoInspectionAvailable,
NoSuchTableError,
OperationalError,
and ProgrammingError
are several other callables with code examples from the same sqlalchemy.exc
package.
SQLAthanor (PyPI package information and project documentation) is a SQLAlchemy extension that provides serialization and deserialization support for JSON, CSV, YAML and Python dictionaries. This project is similar to Marshmallow with one major difference: SQLAthanor works through SQLAlchemy models while Marshmallow is less coupled to SQLAlchemy because it requires separate representations of the serialization objects. Both libraries have their uses depending on whether the project plans to use SQLAlchemy for object representations or would prefer to avoid that couping. SQLAthanor is open sourced under the MIT license.
SQLAthanor / sqlathanor / utilities.py
# utilities.py
import csv
import linecache
import warnings
import yaml
from collections import OrderedDict
from sqlalchemy.orm.collections import InstrumentedList
from sqlalchemy.exc import InvalidRequestError as SA_InvalidRequestError
from sqlalchemy.exc import UnsupportedCompilationError as SA_UnsupportedCompilationError
from validator_collection import validators, checkers
from validator_collection.errors import NotAnIterableError
from sqlathanor._compat import json, is_py2, is_py36, is_py35, dict as dict_
from sqlathanor.errors import InvalidFormatError, UnsupportedSerializationError, \
UnsupportedDeserializationError, MaximumNestingExceededError, \
MaximumNestingExceededWarning, DeserializationError, CSVStructureError
UTILITY_COLUMNS = [
'metadata',
'primary_key_value',
'_decl_class_registry',
'_sa_instance_state',
'_sa_class_manager'
]
def bool_to_tuple(input):
if input is True:
input = (True, True)
elif not input:
input = (False, False)
elif not isinstance(input, tuple) or len(input) > 2:
## ... source file continues with no further UnsupportedCompilationError examples...