/** * Raw SQL execution utilities for Drizzle * Provides direct driver access for raw SQL queries */ import type { H3Event } from 'h3'; import type { DrizzleDatabase } from './client.js'; /** * Register the underlying driver for raw SQL access */ export declare function registerDriver(db: DrizzleDatabase['db'], type: 'better-sqlite3' | 'libsql' | 'neon' | 'd1', driver: unknown): void; /** * Get raw SQL executor for a Drizzle client */ export declare function getRawExecutor(client: DrizzleDatabase): { dialect: import("./client.js").DatabaseDialect; all>(query: string, params?: unknown[]): Promise; first>(query: string, params?: unknown[]): Promise; exec(query: string, params?: unknown[]): Promise; }; export type RawExecutor = ReturnType; /** * Get raw SQL executor from event context or create new one */ export declare function useRawDb(event?: H3Event): Promise; /** * Close underlying database driver connection */ export declare function closeDriver(db: DrizzleDatabase['db']): void;