from dagster import resource
from google.cloud import bigquery
from .configs import bq_resource_config
[docs]@resource(
config_schema=bq_resource_config(), description="Dagster resource for connecting to BigQuery"
)
def bigquery_resource(context):
return bigquery.Client(**context.resource_config)