UNPKG

@n8n/typeorm

Version:

Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.

19 lines (18 loc) 739 B
import type { Database as Sqlite3Database } from "sqlite3"; import { DbLease, DbLeaseHolder, DbLeaseOwner } from "./SqlitePooledTypes"; /** * Represents a leased database connection. The connection is * leased from the owner to the lease holder, and must be * released back to the owner when no longer needed. */ export declare class LeasedDbConnection implements DbLease { private readonly _connection; private readonly leaseOwner; private readonly leaseHolder; private isReleased; get connection(): Sqlite3Database; constructor(_connection: Sqlite3Database, leaseOwner: DbLeaseOwner, leaseHolder: DbLeaseHolder); markAsInvalid(): void; release(): Promise<void>; requestRelease(): Promise<void>; }