This commit is contained in:
Naruse
2025-04-15 19:36:05 +08:00
parent dd51fb491d
commit ec8972d5d6
121 changed files with 30598 additions and 0 deletions

10
database/mongodb.py Normal file
View File

@@ -0,0 +1,10 @@
from pymongo import MongoClient
client = MongoClient("mongodb://localhost:27017")
def get_database():
return client["neonsr"]
def get_collection(collection_name: str):
database = client["neonsr"]
return database[collection_name]