/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This program is offered under a commercial license. * For more information, see */ import Database, { MagicAttributeModel, Transactionable } from '@nocobase/database'; import { Application } from '@nocobase/server'; type TableInfo = { tableName: string; schema?: string; }; export declare class DatabaseServerModel extends MagicAttributeModel { protected app: Application; setApp(app: Application): void; renderJsonTemplate(options: any): any; getRemoteDatabaseInstance(): Database; getOptions(): any; listRemoteTables(): Promise<[unknown[], unknown]>; describeTable(table: TableInfo): Promise; showIndexes(table: TableInfo): Promise; showTableDefinition(tableInfo: TableInfo): Promise; updateServer(options?: Transactionable): Promise; destroyServer(options?: Transactionable): Promise; createServer(options?: Transactionable): Promise; } export {};