František
06/06/2024, 1:49 PMFrantišek
06/06/2024, 1:52 PMalex
06/06/2024, 1:59 PMFrantišek
06/10/2024, 1:21 PMprefect-dbt[postgres]
and register the adapters: prefect block register -m prefect_dbt
. After that, something like this works:
dbt_cli_profile = DbtCliProfile.load(dbt_cli_profile_name)
result = DbtCoreOperation(
commands=commands,
project_dir='./',
profiles_dir='./', # separate from the root profiles.yml used for local dev
dbt_cli_profile=dbt_cli_profile,
overwrite_profiles=True
).run()