MCPcopy Create free account
hub / github.com/VJBots/VJ-Forward-Bot / __init__

Method __init__

plugins/db.py:13–19  ·  view source on GitHub ↗
(self, uri, db_name, collection)

Source from the content-addressed store, hash-verified

11
12class MongoDB:
13 def __init__(self, uri, db_name, collection):
14 self.uri = uri
15 self.db_name = db_name
16 self.collection = collection
17 self.client = None
18 self.db = None
19 self.files = None
20
21 async def connect(self):
22 self.client = motor.motor_asyncio.AsyncIOMotorClient(self.uri)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected