Database.(constructor)
Home > @direct-sqlite/core > Database > (constructor)
Database.(constructor)
Section titled “Database.(constructor)”Constructs a new instance of the Database class
Signature:
constructor(client: GenericSqliteClient, options?: { optimize?: "WAL" | "MEMORY" | "FAST"; cacheSize?: number; } | undefined);Parameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
client |
GenericSqliteClient |
An instance of a SQLite client ( |
|
options |
{ optimize?: “WAL” | “MEMORY” | “FAST”; cacheSize?: number; } | undefined |
(Optional) Optional configuration for performance tuning and statement cache size. |