-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
35 lines (34 loc) · 1.02 KB
/
config.py
File metadata and controls
35 lines (34 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from sqlmesh.core.config import (
Config,
DuckDBConnectionConfig,
GatewayConfig,
ModelDefaultsConfig,
)
from sqlmesh.core.config.connection import DuckDBAttachOptions
config = Config(
gateways={
"dev": GatewayConfig(
connection=DuckDBConnectionConfig(
catalogs={
"peoplewa": DuckDBAttachOptions(
type="ducklake",
path="dev_metadata.ducklake",
data_path="data/ducklake",
# Optional: encrypted=True, data_inlining_row_limit=10,
),
},
extensions=["ducklake"],
),
# Use a separate DuckDB file for state tracking
state_connection=DuckDBConnectionConfig(
database="dev_state.db",
type="duckdb",
),
),
},
default_gateway="dev",
model_defaults=ModelDefaultsConfig(
dialect="duckdb",
start="2024-01-01",
),
)