UNPKG

typeorm

Version:

Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.

32 lines (31 loc) 915 B
import { BaseDataSourceOptions } from "../../data-source/BaseDataSourceOptions"; /** * Sqlite-specific connection options. */ export interface CapacitorConnectionOptions extends BaseDataSourceOptions { /** * Database type. */ readonly type: "capacitor"; /** * The capacitor-sqlite instance. For example, `new SQLiteConnection(CapacitorSQLite)`. */ readonly driver: any; /** * Database name (capacitor-sqlite will add the suffix `SQLite.db`) */ readonly database: string; /** * Set the mode for database encryption */ readonly mode?: "no-encryption" | "encryption" | "secret" | "newsecret"; /** * Database version */ readonly version?: number; /** * The SQLite journal mode (optional) */ readonly journalMode?: "DELETE" | "TRUNCATE" | "PERSIST" | "MEMORY" | "WAL" | "OFF"; readonly poolSize?: never; }