Initial commit
This commit is contained in:
13
api/rpk-api/hub/__init__.py
Normal file
13
api/rpk-api/hub/__init__.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import os
|
||||
|
||||
import motor.motor_asyncio
|
||||
from beanie import Document
|
||||
from fastapi_users.db import BaseOAuthAccount, BeanieBaseUser, BeanieUserDatabase
|
||||
from pydantic import Field
|
||||
|
||||
DATABASE_URL = "mongodb://localhost:27017"
|
||||
client = motor.motor_asyncio.AsyncIOMotorClient(
|
||||
DATABASE_URL, uuidRepresentation="standard"
|
||||
)
|
||||
db = client["database_name"]
|
||||
|
||||
Reference in New Issue
Block a user