xbackend/db/ckdb_utils.py
2021-05-15 15:38:02 +08:00

13 lines
237 B
Python

from aioch import Client
from core.config import settings
from .ckdb import CKDrive
async def connect_to_ck():
CKDrive.client = Client(**settings.CK_CONFIG)
async def close_ck_connection():
await CKDrive.client.disconnect()