Interface DataSourceOptions

数据源配置项 其实对应一个语义模型而不是一个数据源

TODO

需要使用 CSDL 的概念进行重新定义

  • entityTypes 配置此数据源下多个 entity
    • entityType 每个 entity 的类型字段配置
    • annotations 每个 entity 的 annotations 配置
interface DataSourceOptions {
    agentType?: AgentType;
    authMethod?: string;
    caption?: string;
    catalog?: string;
    dbInitialization?: string;
    dialect?: string;
    id?: string;
    key?: string;
    name?: string;
    schema?: Schema;
    settings?: DataSourceSettings;
    syntax?: Syntax;
    tables?: TableEntity[];
    type: "SQL" | "XMLA" | "OData";
    useLocalAgent?: boolean;
}

Hierarchy

Properties

agentType?: AgentType
authMethod?: string
caption?: string
catalog?: string

DB Schema / OData Catalog ...

dbInitialization?: string

Initialization Script for wasm database

dialect?: string

数据源内的方言, 如 OData 中有 SAP, Microsoft 等, XMLA 中有 SAP BW, SQL 数据库有 Postgres Mysql Hive 等

id?: string

System id in server

key?: string

Semantic key

name?: string

Deprecated

use key

schema?: Schema
syntax?: Syntax

数据查询所使用的语言

tables?: TableEntity[]

Table defination for wasm database

type: "SQL" | "XMLA" | "OData"
useLocalAgent?: boolean

Generated using TypeDoc