@lantsang/nestjs-tdengine
Version:
NestJS TDengine 驱动
26 lines (25 loc) • 1.29 kB
TypeScript
import { HttpService } from '@nestjs/common';
import { CreateSuperTableResponse } from '../interfaces/response/super-table/create-super-table.response.interface';
import { DeleteSuperTableResponse } from '../interfaces/response/super-table/delete-super-table.response.interface';
export declare class TDengineSuperTableService {
private readonly httpService;
constructor(httpService: HttpService);
/**
* 创建超级表
* @param database 数据库名称
* @param name 超级表名称
* @param fieldList 字段列表,不要写**timestamp**字段,框架已经自动在列表最前面插入了此字段。
* @param tags tag列表
* @param ifNotExists 是否仅在**不存在此表的时候创建**,默认为:否
* @returns 超级表创建结果
*/
create(database: string, name: string, fieldList: string[][], tags: string[][], ifNotExists?: boolean): Promise<CreateSuperTableResponse>;
/**
* 删除超级表
* @param database 数据库名称
* @param name 超级表名称
* @param ifExists 是否仅在超级表存在的情况下执行删除,默认为:否
* @returns 超级表删除结果
*/
delete(database: string, name: string, ifExists?: boolean): Promise<DeleteSuperTableResponse>;
}