Interface DataSource

数据源的抽象接口

  • options 配置项
  • createEntityService 创建 entityService
  • getAnnotation 获取 annotation
interface DataSource {
    agent: Agent;
    options: DataSourceOptions;
    clearCache(): Promise<void>;
    createEntity(name, columns, data?): Observable<string>;
    createEntityService<T>(entity): EntityService<T>;
    discoverDBCatalogs(): Observable<DBCatalog[]>;
    discoverDBTables(): Observable<DBTable[]>;
    discoverMDCubes(refresh?): Observable<MDCube[]>;
    discoverMDMembers(entity, dimension): Observable<IDimensionMember[]>;
    dropEntity(name): Promise<void>;
    getCatalogs(): Observable<Catalog[]>;
    getEntitySets(refresh?): Observable<EntitySet[]>;
    getEntityType(entity): Observable<Error | EntityType>;
    getIndicator(id, entity?): Indicator;
    getMembers(entity, dimension): Observable<IDimensionMember[]>;
    onDestroy(): void;
    query(options): Observable<any>;
    selectEntitySet(entity): Observable<Error | EntitySet>;
    selectEntitySets(refresh?): Observable<EntitySet[]>;
    selectEntityType(entity): Observable<Error | EntityType>;
    selectIndicators(entity): Observable<Indicator[]>;
    selectMembers(entity, dimension): Observable<IDimensionMember[]>;
    selectSchema(): Observable<Schema>;
    setEntityType(entityType): void;
    setSchema(schema): void;
    updateCube(cube): void;
}

Implemented by

Properties

agent: Agent

Methods

  • Returns Observable<Catalog[]>

    Deprecated

    use discoverDBCatalogs

    获取数据源的数据服务目录, 数据服务目录用于区分不同的数据实体类别, 如 ODataService 的 Catalog, XMLA 的 CATALOG_NAME 等

Generated using TypeDoc