Properties
disconnect
disconnect: (() => Promise<void>)
Type declaration
- (): Promise<void>
Returns Promise<void>
exec
exec: ((sql) => Promise<number>)
Type declaration
- (sql): Promise<number>
Returns Promise<number>
getAttribute
getAttribute: ((attribute) => string | number)
Type declaration
- (attribute): string | number
Returns string | number
getRawDriverConnection
getRawDriverConnection: (<T>() => Promise<T>) Type declaration
- <T>(): Promise<T>
Returns Promise<T>
getVersion
getVersion: (() => Promise<string>)
Type declaration
- (): Promise<string>
Returns Promise<string>
on
on: ((eventName, handler) => void)
Type declaration
- (eventName, handler): void
Parameters
- eventName: "log"
- handler: ((level, message) => void)
- (level, message): void
Parameters
- level: string
- message: string
Returns void
Returns void
reconnect
reconnect: (() => void)
setAttribute
setAttribute: ((attribute, value) => boolean)
Type declaration
- (attribute, value): boolean
Parameters
- attribute: string
- value: string | number
Returns boolean