Get-CatDataSourceList
Meant to return the data-source lists of the open project. In the current version it returns the test lists instead — see below.
On this page
Synopsis
Get-CatDataSourceList
Parameters
None (common parameters only).
What it does
Intended to write the project’s data-source lists — the places the project loads data-source definitions from (the project file itself, a YAML file, a database table, …). In the current version the cmdlet returns the project’s test lists, the same objects as Get-CatTestList — a defect in the module, not in your project. Until it is fixed, read the data-source lists from the project object: (Get-CatProject).DataSourceLists.
Output
One list object. Today: the test lists (see Get-CatTestList). Intended: List<DataSourceList> with Name, ProviderNameAndVersion, ConnectionString, Query, Order, IsImplicit (the project file’s own list), Settings.
Errors
There is no CAT project open. Use Open-CatProject to open it. when nothing is open.
Examples
Open-CatProject
# the data-source lists, reliably:
(Get-CatProject).DataSourceLists | Select-Object Name, ProviderNameAndVersion
Related
- Introduction — session model, logging, errors, sign-in.
Get-CatProject—DataSourceListson the project object.- Lists — what a data-source list is.