Files
deb-python-sqlalchemy-utils/sqlalchemy_utils/functions/__init__.py
Konsta Vesterinen e6ec12ae71 Add support for constraints, refs #161
Add support for foreign key constraints in has_index and has_unique_index. Remove has_indexed_foreign_key function (superceded now by more versatile has_index function).
2015-09-17 14:20:06 +03:00

48 lines
1022 B
Python

from .database import ( # noqa
analyze,
create_database,
database_exists,
drop_database,
escape_like,
has_index,
has_unique_index,
is_auto_assigned_date_column,
json_sql
)
from .foreign_keys import ( # noqa
dependent_objects,
get_fk_constraint_for_columns,
get_referencing_foreign_keys,
group_foreign_keys,
merge_references,
non_indexed_foreign_keys
)
from .mock import create_mock_engine, mock_engine # noqa
from .orm import ( # noqa
cast_if,
get_bind,
get_class_by_table,
get_column_key,
get_columns,
get_declarative_base,
get_hybrid_properties,
get_mapper,
get_primary_keys,
get_query_entities,
get_tables,
get_type,
getdotattr,
has_changes,
identity,
is_loaded,
naturally_equivalent,
quote,
table_name
)
from .render import render_expression, render_statement # noqa
from .sort_query import ( # noqa
make_order_by_deterministic,
QuerySorterException,
sort_query
)