mirror of
https://github.com/d3vyce/fastapi-toolsets.git
synced 2026-04-16 06:36:26 +02:00
* feat: support relation tuples in order_fields for cross-table sorting * docs: update crud module
38 lines
854 B
Python
38 lines
854 B
Python
"""Generic async CRUD operations for SQLAlchemy models."""
|
|
|
|
from ..exceptions import (
|
|
InvalidFacetFilterError,
|
|
InvalidSearchColumnError,
|
|
NoSearchableFieldsError,
|
|
UnsupportedFacetTypeError,
|
|
)
|
|
from ..schemas import PaginationType
|
|
from ..types import (
|
|
FacetFieldType,
|
|
JoinType,
|
|
M2MFieldType,
|
|
OrderByClause,
|
|
OrderFieldType,
|
|
SearchFieldType,
|
|
)
|
|
from .factory import AsyncCrud, CrudFactory
|
|
from .search import SearchConfig, get_searchable_fields
|
|
|
|
__all__ = [
|
|
"AsyncCrud",
|
|
"CrudFactory",
|
|
"FacetFieldType",
|
|
"get_searchable_fields",
|
|
"InvalidFacetFilterError",
|
|
"InvalidSearchColumnError",
|
|
"JoinType",
|
|
"M2MFieldType",
|
|
"NoSearchableFieldsError",
|
|
"OrderByClause",
|
|
"OrderFieldType",
|
|
"PaginationType",
|
|
"SearchConfig",
|
|
"SearchFieldType",
|
|
"UnsupportedFacetTypeError",
|
|
]
|