Local MySQL
The Local Database module provides a simple interface for interacting with SQLite databases. It supports both in-memory and file-based databases, allowing for flexible data storage options.
Constructor
constructor(location: boolean | string);parameter
description
Methods
get
getpublic get get(): sqlite3.Database | null;query
querypublic query<T>(query: string, params: any[] = []): Promise<T[]>;parameter
description
refresh
refreshFile-Based Example
In-Memory Database Example
Last updated