mirror of
https://github.com/fastapi-users/fastapi-users.git
synced 2025-08-15 03:04:27 +08:00

* Add db adapter for ormar (wip) * finish ormar support enough to pass tests * remove idea folder * update ormar version in tool.flit.metadata.requires-extra * Add documentation about ormar * Apply isort and black formatting * Restore python 3.7 in Pipfile * Update build.yml * Add missing test for ormar update * changes after review Co-authored-by: Paolo Dina <paolo.dina@codingmoth.com> Co-authored-by: collerek <collerek@gmail.com>
34 lines
848 B
Python
34 lines
848 B
Python
from fastapi_users.db.base import BaseUserDatabase # noqa: F401
|
|
|
|
try:
|
|
from fastapi_users.db.mongodb import MongoDBUserDatabase # noqa: F401
|
|
except ImportError: # pragma: no cover
|
|
pass
|
|
|
|
try:
|
|
from fastapi_users.db.sqlalchemy import ( # noqa: F401
|
|
SQLAlchemyBaseOAuthAccountTable,
|
|
SQLAlchemyBaseUserTable,
|
|
SQLAlchemyUserDatabase,
|
|
)
|
|
except ImportError: # pragma: no cover
|
|
pass
|
|
|
|
try:
|
|
from fastapi_users.db.tortoise import ( # noqa: F401
|
|
TortoiseBaseOAuthAccountModel,
|
|
TortoiseBaseUserModel,
|
|
TortoiseUserDatabase,
|
|
)
|
|
except ImportError: # pragma: no cover
|
|
pass
|
|
|
|
try:
|
|
from fastapi_users.db.ormar import ( # noqa: F401
|
|
OrmarBaseOAuthAccountModel,
|
|
OrmarBaseUserModel,
|
|
OrmarUserDatabase,
|
|
)
|
|
except ImportError: # pragma: no cover
|
|
pass
|