Scan a database to get a physical data model (PDM)
It scans a database and transforms its metadata to a declarative definition of the physical data model (PDM). The result of the request contains the mentioned physical data model (PDM) of a database within warning, for example, about unsupported columns.
path Parameters
dataSourceIdstring · pattern:^(?!\.)[.A-Za-z0-9_-…· requiredData source id
Request Body
scanTablesboolean · requiredA flag indicating whether the tables should be scanned.
Example: truescanViewsboolean · requiredA flag indicating whether the views should be scanned.
Example: trueseparatorstring · requiredA separator between prefixes and the names.
Example: __
schematastring[]What schemata will be scanned.
Example: ["tpch","demo"]tablePrefixstringTables starting with this prefix will be scanned. The prefix is then followed by the value of
separatorparameter. Given the table prefix isout_tableand separator is__, the table with name likeout_table__customerswill be scanned.Example: out_tableviewPrefixstringViews starting with this prefix will be scanned. The prefix is then followed by the value of
separatorparameter. Given the view prefix isout_viewand separator is__, the table with name likeout_view__us_customerswill be scanned.Example: out_view
Responses
The result of the scan.
pdmobject · requiredA physical data model (PDM) tables.
warningsobject[] · required
Collect metadata about SQL query
It executes SQL query against specified data source and extracts metadata. Metadata consist of column names and column data types. It can optionally provide also preview of data returned by SQL query
path Parameters
dataSourceIdstring · pattern:^(?!\.)[.A-Za-z0-9_-…· requiredData source id
Request Body
sqlstring · requiredSQL query to be analyzed.
Example: SELECT a.special_value as result FROM tableA a
Responses
The result of the scan.
columnsobject[] · requiredArray of columns with types.
dataPreviewarray[]Array of rows where each row is another array of string values.