UNPKG

queryforge

Version:

A powerful, type-safe SQL query builder for Node.js with support for MySQL, PostgreSQL, and SQLite. Features fluent API, transaction management, and connection pooling.

15 lines (14 loc) 548 B
import { ConnectionManager } from './ConnectionManager'; import { DatabaseConfig, QueryResult } from '../interfaces'; export declare class MySQLConnectionManager implements ConnectionManager { private connection; private config; constructor(config: DatabaseConfig); connect(): Promise<void>; isConnected(): boolean; disconnect(): Promise<void>; query<T = any>(sql: string, parameters?: any[]): Promise<QueryResult<T>>; beginTransaction(): Promise<void>; commit(): Promise<void>; rollback(): Promise<void>; }