implement cli/infra update cicd
This commit is contained in:
@@ -15,16 +15,22 @@ gateways:
|
||||
|
||||
prod:
|
||||
connection:
|
||||
# For more information on configuring the connection to your execution engine, visit:
|
||||
# https://sqlmesh.readthedocs.io/en/stable/reference/configuration/#connection
|
||||
# https://sqlmesh.readthedocs.io/en/stable/integrations/engines/duckdb/#connection-options
|
||||
type: duckdb
|
||||
|
||||
database: materia_prod.db
|
||||
database: ':memory:'
|
||||
extensions:
|
||||
- name: zipfs
|
||||
- name: httpfs
|
||||
- name: iceberg
|
||||
init_script: |
|
||||
CREATE SECRET IF NOT EXISTS r2_secret (
|
||||
TYPE ICEBERG,
|
||||
TOKEN '{{ env_var("CLOUDFLARE_API_TOKEN") }}'
|
||||
);
|
||||
ATTACH '{{ env_var("R2_WAREHOUSE_NAME", "materia") }}' AS catalog (
|
||||
TYPE ICEBERG,
|
||||
ENDPOINT '{{ env_var("ICEBERG_REST_URI") }}'
|
||||
);
|
||||
CREATE SCHEMA IF NOT EXISTS catalog.materia;
|
||||
USE catalog.materia;
|
||||
|
||||
|
||||
default_gateway: dev
|
||||
|
||||
Reference in New Issue
Block a user