/** * SQLite 数据库适配器 * * 多后端支持: * 1. node:sqlite — Node 22.5+ 内置(零依赖、最快) * 2. better-sqlite3 — 兜底(需要 native binding,但更成熟) * * 通过 detectSqliteBackend() 运行时自动选择。 */ import { BaseAdapter } from '../base.js'; import type { QueryResult, SchemaInfo, TableInfo } from '../../types/adapter.js'; export declare class SQLiteAdapter extends BaseAdapter { private conn; private backend; private config; constructor(config: { filePath: string; readonly?: boolean; }); /** * 连接到 SQLite 数据库 */ connect(): Promise; /** * 断开数据库连接 */ disconnect(): Promise; /** * 执行 SQL 查询 */ executeQuery(query: string, params?: unknown[]): Promise; /** * 获取数据库结构信息 */ getSchema(): Promise; /** * 清除 Schema 缓存(no-op,保留仅为向后兼容) */ clearSchemaCache(): void; /** * v4.0.3: fast-path single-table metadata. Public to satisfy DbAdapter.getTableInfo. * Internally returns rich {tableInfo, tableForeignKeys}; we strip the wrapper * for the interface. * * v4.0.3.2: Re-throw validateIdentifier errors (security check) but return * null for legitimate "table not found" / other failures. */ getTableInfo(tableName: string): Promise; /** Internal helper — full info including FKs. Used by getSchema assembly. */ private _getTableInfo; /** * 检查是否为写操作 */ isWriteOperation(query: string): boolean; protected getDialect(): import('../../utils/adapter-factory.js').DbType; } //# sourceMappingURL=index.d.ts.map