From e217fb29fcb14010137609ac57abb7e7446a1a2a Mon Sep 17 00:00:00 2001 From: Migan178 Date: Thu, 30 Nov 2023 08:37:38 +0900 Subject: [PATCH] feat: add ping --- src/modules/database/database.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/modules/database/database.ts b/src/modules/database/database.ts index 80ba61f..877e204 100644 --- a/src/modules/database/database.ts +++ b/src/modules/database/database.ts @@ -20,6 +20,10 @@ export class MaaDatabase { public get learn() { return new LearnTable(this._database) } + + public async ping() { + await this._database.ping() + } } const database = createPool({