feat: add ping
This commit is contained in:
parent
e8dcfef00f
commit
e217fb29fc
1 changed files with 4 additions and 0 deletions
|
@ -20,6 +20,10 @@ export class MaaDatabase {
|
||||||
public get learn() {
|
public get learn() {
|
||||||
return new LearnTable(this._database)
|
return new LearnTable(this._database)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async ping() {
|
||||||
|
await this._database.ping()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const database = createPool({
|
const database = createPool({
|
||||||
|
|
Loading…
Reference in a new issue