skipcheck

TM1 client · Docs · Processes and chores

SqlDataSourceService

from skipcheck_tm1.services import SqlDataSourceService

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
return [source.name for source in tm1.sql_data_sources.list() if source.name is not None]

The asyncio flavor, skipcheck_tm1.aio, has the same methods to await, on AsyncSqlDataSourceService.

Members

listTheir names and descriptions.
getA Tm1NotFoundError if the host has none by that name.

list

list(query: ODataQuery | None = None, **options: Any) -> list[SQLDataSource]

GET SQLDataSources: their names and descriptions.

TM1 REST EntitySet SQLDataSources

get

get(name: str, query: ODataQuery | None = None, **options: Any) -> SQLDataSource

GET SQLDataSources('name'): a Tm1NotFoundError if the host has none by that name.

TM1 REST EntitySet SQLDataSources