Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /fastapi-users_fastapi-users /docs /src /db_beanie.py
| import motor.motor_asyncio | |
| from beanie import Document | |
| from fastapi_users.db import BeanieBaseUser, BeanieUserDatabase | |
| DATABASE_URL = "mongodb://localhost:27017" | |
| client = motor.motor_asyncio.AsyncIOMotorClient( | |
| DATABASE_URL, uuidRepresentation="standard" | |
| ) | |
| db = client["database_name"] | |
| class User(BeanieBaseUser, Document): | |
| pass | |
| async def get_user_db(): | |
| yield BeanieUserDatabase(User) | |
Xet Storage Details
- Size:
- 402 Bytes
- Xet hash:
- 5dbea667205aa4a48d14757e268a47c2add1b93cca4fa5abaa73ad6530c49de4
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.