The second required parameter for all run
functions is hooks
:
This parameter is an instance of the PrismHooks
class, a high-level interface that lets you quickly and easily talk to external connections without having to write low-level code or use special libraries.
The following hooks are available to Prism users:
: execute SQL code using specific adapters
: execute PySpark code
: convert materialized dbt models into Pandas DataFrames
: retrieve the connection instance (for SQL adapters)
: retrieve a cursor instance (for SQL adapters)