skipcheck

TM1 client · Docs · Processes and chores

SqlDataSourceService

import { SqlDataSourceService } from "@skipcheck/tm1-client";

The ODBC data sources on TM1's host, which processes can read from (DataSource.Type ODBC). They're the host's ODBC configuration, not TM1's: read only here.

List the data sources:

// The ODBC sources a process could read from, on TM1's host
const sources = await tm1.sqlDataSources.list().toArray();
return sources.map((source) => source.Name!);

Members

listGET SQLDataSources, streamed.
getThe data source, or a Tm1NotFoundException if the host has none by that name.

list

list(query?: ODataQuery | null, options?: Tm1CallOptions): Tm1Stream<SQLDataSource>

GET SQLDataSources, streamed: the data sources' names and descriptions.

TM1 REST EntitySet SQLDataSources

get

get(name: string, query?: ODataQuery | null, options?: Tm1CallOptions): Promise<SQLDataSource>

GET SQLDataSources('name'): the data source, or a Tm1NotFoundException if the host has none by that name.

TM1 REST EntitySet SQLDataSources