/** * ClickHouse 数据库适配器 * 使用 @clickhouse/client 驱动实现 DbAdapter 接口 * ClickHouse 是高性能列式 OLAP 数据库 */ import type { DbAdapter, QueryResult, SchemaInfo } from '../types/adapter.js'; export declare class ClickHouseAdapter implements DbAdapter { private client; private config; constructor(config: { host: string; port: number; user?: string; password?: string; database?: string; }); /** * 连接到 ClickHouse 数据库 */ connect(): Promise; /** * 断开数据库连接 */ disconnect(): Promise; /** * 执行 SQL 查询 */ executeQuery(query: string, params?: unknown[]): Promise; /** * 转换参数为 ClickHouse 格式 */ private convertParams; /** * 获取数据库结构信息 */ getSchema(): Promise; /** * 获取单个表的详细信息 */ private getTableInfo; /** * 检查是否为写操作 */ isWriteOperation(query: string): boolean; } //# sourceMappingURL=clickhouse.d.ts.map