Properties
inTransaction
inTransaction: boolean
memory
memory: boolean
name
name: string
open
open: boolean
readonly
readonly: boolean
Methods
aggregate
- aggregate(name: string, options: AggregateOptions): Database
-
backup
- backup(destinationFile: string, options?: BackupOptions): Promise<BackupMetadata>
-
close
- close(): Database
-
defaultSafeIntegers
- defaultSafeIntegers(toggleState?: boolean): Database
-
Parameters
-
Optional
toggleState: boolean
exec
- exec(source: string): Database
-
function
- function(name: string, cb: ((...params: any[]) => any)): Database
-
Parameters
-
name: string
-
cb: ((...params: any[]) => any)
-
- (...params: any[]): any
-
Returns any
- function(name: string, options: RegistrationOptions, cb: ((...params: any[]) => any)): Database
-
Parameters
-
name: string
-
-
cb: ((...params: any[]) => any)
-
- (...params: any[]): any
-
Returns any
loadExtension
- loadExtension(path: string): Database
-
pragma
- pragma(source: string, options?: PragmaOptions): any
-
Returns any
prepare
- prepare<BindParameters>(source: string): BindParameters extends any[] ? Statement<BindParameters> : Statement<[BindParameters]>
-
Type Parameters
-
BindParameters extends {} | any[] = any[]
Returns BindParameters extends any[] ? Statement<BindParameters> : Statement<[BindParameters]>
transaction
- transaction<F>(fn: F): Transaction<F>
-
unsafeMode
- unsafeMode(unsafe?: boolean): Database
-