Properties
beginTransaction
beginTransaction: (() => Promise<void>)
Type declaration
- (): Promise<void>
Returns Promise<void>
close
close: (() => Promise<void>)
Type declaration
- (): Promise<void>
Returns Promise<void>
commit
commit: (() => 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
lastInsertId
lastInsertId: ((__namedParameters, name?) => Promise<null | string | number | bigint>)
Type declaration
- (__namedParameters, name?): Promise<null | string | number | bigint>
Returns Promise<null | string | number | bigint>
prepare
prepare: ((sql) => Promise<any>)
Type declaration
- (sql): Promise<any>
Returns Promise<any>
rollback
rollback: (() => Promise<void>)
Type declaration
- (): Promise<void>
Returns Promise<void>
setAttribute
setAttribute: ((attribute, value) => boolean)
Type declaration
- (attribute, value): boolean
Parameters
- attribute: string
- value: string | number
Returns boolean
setAttributes
setAttributes: ((attributes) => void)
Type declaration
- (attributes): void
Returns void