hooks.get_connection(...)
Function used to retrieve adapter's connection class
hooks.get_connection(adapter_name: str)
Parameters
adapter_name: the adapter in the projects profile YML whose connection you want to retrieve
Returns:
BigQuery -->
google.cloud.bigquery.ClientPostgres -->
psycopg2.ConnectionRedshift -->
psycopg2.ConnectionSnowflake -->
snowflake.connector.ConnectionTrino -->
trino.dbapi.Connection
from prism.task import PrismTask
class SqlTask(PrismTask)
    def run(self, tasks, hooks):
        conn = hooks.get_connection(adapter_name="<ADAPTER_NAME">)
        conn.do_stuff()
        return ...
from prism.decorators import task
@task()
def sql_task(tasks, hooks):
    conn = hooks.get_connection(adapter_name="<ADAPTER_NAME">)
    conn.do_stuff()
    return ...