This documentation is for the unstable version of GoodData, currrently in development.
For stable version, go to the latest stable version of this article.
For stable version, go to the latest stable version of this article.
catalog_data_source.
load_and_put_declarative_data_sources
load_and_put_declarative_data_sources(layout_root_path: Path = Path.cwd(), credentials_path: Optional[Path] = None, test_data_sources: bool = False)
This method combines load_declarative_data_sources and put_declarative_data_sources methods to load and set layouts stored using store_declarative_data_sources.
Parameters
name | type | description |
---|---|---|
layout_root_path | CatalogDeclarativeDataSources | Path to the root of the layout directory. Defaults to Path.cwd(). |
credentials_path | Optional[Path] | Path to the credentials. Defaults to Path.cwd(). |
test_data_sources | Optional[Bool] | If True, the connection of data sources is tested. Defaults to False. |
Returns
None
Example
The load and put can be done two ways.
Either by one call:
Or by two separate calls:
Example of the credential file:
The result is identical.