UNPKG

typeorm

Version:

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

47 lines (46 loc) 1.52 kB
import type { DataSource } from "../../data-source/DataSource"; import type { QueryRunner } from "../../query-runner/QueryRunner"; import { AbstractSqliteDriver } from "../sqlite-abstract/AbstractSqliteDriver"; import type { ColumnType } from "../types/ColumnTypes"; import type { ReplicationMode } from "../types/ReplicationMode"; import type { NativescriptDataSourceOptions } from "./NativescriptDataSourceOptions"; /** * Organizes communication with sqlite DBMS within Nativescript. */ export declare class NativescriptDriver extends AbstractSqliteDriver { /** * DataSource options. */ options: NativescriptDataSourceOptions; /** * Nativescript driver module * this is most likely `nativescript-sqlite` * but user can pass his own */ driver: any; constructor(dataSource: DataSource); /** * Closes connection with database. */ disconnect(): Promise<void>; /** * Creates a query runner used to execute database queries. * * @param mode */ createQueryRunner(mode: ReplicationMode): QueryRunner; normalizeType(column: { type?: ColumnType; length?: number | string; precision?: number | null; scale?: number; }): string; /** * Creates connection with the database. */ protected createDatabaseConnection(): Promise<void>; /** * If driver dependency is not given explicitly, then try to load it via "require". */ protected loadDependencies(): void; }