import { Database, Dialect } from '../../base/index.js'; import { DocumentModel } from './model.js'; import { QueryParams, BuildQueryResult, DocumentQueryResult, CreateQueryParams, SelectQueryParams, InsertQueryParams, UpdateQueryParams, DeleteQueryParams, AlterQueryParams, DropTableQueryParams, DropIndexQueryParams } from '../../types.js'; /** * 文档型数据库类 * 支持集合、文档的文档型数据模型 */ export declare class DocumentDatabase = Record> extends Database { constructor(dialect: Dialect, definitions?: Database.DefinitionObj); protected initialize(): Promise; /** * 构建查询(重写基类方法) */ buildQuery(params: QueryParams): BuildQueryResult; /** * 构建创建集合查询 */ protected buildCreateQuery(params: CreateQueryParams): BuildQueryResult; /** * 构建查询文档查询 */ protected buildSelectQuery(params: SelectQueryParams): BuildQueryResult; /** * 构建插入文档查询 */ protected buildInsertQuery(params: InsertQueryParams): BuildQueryResult; /** * 构建更新文档查询 */ protected buildUpdateQuery(params: UpdateQueryParams): BuildQueryResult; /** * 构建删除文档查询 */ protected buildDeleteQuery(params: DeleteQueryParams): BuildQueryResult; /** * 构建修改集合查询 */ protected buildAlterQuery(params: AlterQueryParams): BuildQueryResult; /** * 构建删除集合查询 */ protected buildDropTableQuery(params: DropTableQueryParams): BuildQueryResult; /** * 构建删除索引查询 */ protected buildDropIndexQuery(params: DropIndexQueryParams): BuildQueryResult; /** * 转换条件为文档查询格式 */ private convertConditionToFilter; /** * 获取模型 */ model(name: T): DocumentModel; /** * 获取所有模型名称 */ getModelNames(): string[]; } //# sourceMappingURL=database.d.ts.map