import { QueryParams } from '../../types'; export declare class DrizzleAdapter { private db; private schema; constructor(db: any, schema: Record); /** * Get table schema object by name */ getTable(tableName: string): any; /** * Query records from a table */ query(tableName: string, params?: QueryParams): Promise; /** * Create a new record * Auto-injects createdAt and updatedAt timestamps if the table has those columns */ create(tableName: string, data: any): Promise; /** * Update a record by ID * Auto-injects updatedAt timestamp if the table has that column */ update(tableName: string, id: string | number, data: any): Promise; /** * Delete a record by ID */ delete(tableName: string, id: string | number): Promise; /** * Count records in a table */ count(tableName: string, where?: Record): Promise; /** * Find a single record by ID */ findById(tableName: string, id: string | number): Promise; /** * Query with relations using Drizzle's relational query API */ queryWithRelations(tableName: string, params?: QueryParams & { with?: Record; }): Promise; /** * Coerce date string values to Date objects for timestamp columns. * Drizzle's SQLiteTimestamp calls .getTime() internally, which fails on strings. */ private coerceDateFields; /** * Build where conditions for Drizzle queries */ private buildWhereConditions; /** * Get available table names from schema */ getTableNames(): string[]; } //# sourceMappingURL=drizzle.d.ts.map