Skip to content

Commit f7913f1

Browse files
committed
Add typescript definition for supportsMultiDb
1 parent e249435 commit f7913f1

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/types/driver.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ driver.verifyConnectivity().then((serverInfo: ServerInfo) => {
107107
console.log(serverInfo.address)
108108
})
109109

110+
driver.supportsMultiDb().then((supported: boolean) => {
111+
console.log(`multi database is supported? => ${supported}`)
112+
})
113+
110114
const rxSession1: RxSession = driver.rxSession()
111115
const rxSession2: RxSession = driver.rxSession({ defaultAccessMode: READ })
112116
const rxSession3: RxSession = driver.rxSession({ defaultAccessMode: 'READ' })

types/driver.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ declare interface Driver {
8686
close(): Promise<void>
8787

8888
verifyConnectivity(): Promise<ServerInfo>
89+
90+
supportsMultiDb(): Promise<boolean>
8991
}
9092

9193
export {

0 commit comments

Comments
 (0)