Skip to main content

Interface: DBConnection

@divine/uri.DBDriver.DBConnection

Properties

state

Readonly state: "open" | "closed"

Defined in

uri/src/database-driver.ts:18

Methods

close

close(): Promise<void>

Returns

Promise<void>

Defined in

uri/src/database-driver.ts:21


open

open(): Promise<void>

Returns

Promise<void>

Defined in

uri/src/database-driver.ts:20


ping

ping(timeout): Promise<void>

Parameters

NameType
timeoutnumber

Returns

Promise<void>

Defined in

uri/src/database-driver.ts:22


query

query(...queries): Promise<DBResult[]>

Parameters

NameType
...queriesDBQuery[]

Returns

Promise<DBResult[]>

Defined in

uri/src/database-driver.ts:24


reference

reference(dbURI): DBReference | Promise<DBReference>

Parameters

NameType
dbURIDatabaseURI

Returns

DBReference | Promise<DBReference>

Defined in

uri/src/database-driver.ts:28


transaction

transaction<T>(dtp, cb): Promise<T>

Type parameters

Name
T

Parameters

NameType
dtpDBTransactionParams
cbDBCallback<T>

Returns

Promise<T>

Defined in

uri/src/database-driver.ts:26


watch

Optional watch(query): AsyncIterable<DBResult>

Parameters

NameType
queryDBQuery

Returns

AsyncIterable<DBResult>

Defined in

uri/src/database-driver.ts:25