mirror of
https://github.com/d3vyce/fastapi-toolsets.git
synced 2026-04-16 06:36:26 +02:00
* refactor: remove deprecated parameter and function * refactor: centralize type aliases in types.py and simplify crud layer * test: add missing tests for fixtures/utils.py * refactor: simplify and deduplicate across crud, metrics, cli, and exceptions * docs: fix old Paginate references * docs: add migration + fix icon * docs: update README/migration to v2
26 lines
586 B
Python
26 lines
586 B
Python
"""Generic async CRUD operations for SQLAlchemy models."""
|
|
|
|
from ..exceptions import InvalidFacetFilterError, NoSearchableFieldsError
|
|
from ..types import (
|
|
FacetFieldType,
|
|
JoinType,
|
|
M2MFieldType,
|
|
OrderByClause,
|
|
SearchFieldType,
|
|
)
|
|
from .factory import CrudFactory
|
|
from .search import SearchConfig, get_searchable_fields
|
|
|
|
__all__ = [
|
|
"CrudFactory",
|
|
"FacetFieldType",
|
|
"get_searchable_fields",
|
|
"InvalidFacetFilterError",
|
|
"JoinType",
|
|
"M2MFieldType",
|
|
"NoSearchableFieldsError",
|
|
"OrderByClause",
|
|
"SearchConfig",
|
|
"SearchFieldType",
|
|
]
|