ale
05/08/2023, 4:33 PMprefect-dbt
I see the available targets are Snowflake, Bigquery and Postgres, but not Redshift.
Should I use the Postgres target?
Any hint is much appreciated! 🙌Sean Williams
05/09/2023, 3:09 PMfrom prefect import flow
from prefect_dbt.cli.commands import DbtCoreOperation
@flow
def trigger_dbt_flow() -> str:
result = DbtCoreOperation(
commands=["pwd", "dbt debug", "dbt run"],
project_dir="PROJECT-DIRECTORY-PLACEHOLDER",
profiles_dir="PROFILES-DIRECTORY-PLACEHOLDER"
).run()
return result
trigger_dbt_flow()
ale
05/09/2023, 3:21 PM