import '@sqb/sqlite-dialect'; import type { Adapter, ClientConfiguration } from '@sqb/connect'; /** * `@sqb/connect` {@link Adapter} for SQLite, wrapping either Node's * built-in `node:sqlite` or, when running under Bun, `bun:sqlite` (see * `./drivers/index.ts`). Registered automatically as a side effect of * importing this package - see `index.ts`. */ export declare class SqliteAdapter implements Adapter { driver: string; dialect: string; features: Adapter.Features; /** * Opens (or reuses, via {@link dbCache}) the native SQLite database at * `config.database` - a `:memory:`/`:memory:name` in-memory database, or * a file path resolved relative to the current working directory. * * @throws {Error} if `config.database` isn't given */ connect(config: ClientConfiguration): Promise; } /** * Closes and evicts an in-memory database from {@link dbCache} by name * (defaulting to the unnamed `:memory:` database). In-memory databases are * never closed automatically by a connection's `close()` (unlike file * databases, which are refcounted), so this is the only way to release one * once no longer needed - primarily useful for test teardown. */ export declare function closeMemoryDatabase(name?: string): Promise;