Back to Prql

Prefect

web/book/src/project/integrations/prefect.md

0.13.12401 B
Original Source

Prefect

Because Prefect is in native Python, it's extremely easy to integrate with PRQL.

With a Postgres Task, replace:

python
PostgresExecute.run(..., query=sql)

...with...

python
PostgresExecute.run(..., query=prql_python.compile(prql))

We're big fans of Prefect, and if there is anything that would make the integration easier, please open an issue.