You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For embedded clients, set DuckDB's `allow_unsigned_extensions` database configuration before opening the connection. Community extension installation is planned, but this repository does not yet publish the signed multi-platform artifacts required for `INSTALL sidemantic FROM community`.
41
+
21
42
## Quick Start (Pure SQL)
22
43
23
44
Define your semantic layer entirely in SQL, no YAML required:
@@ -32,7 +53,6 @@ INSERT INTO orders VALUES
32
53
33
54
-- 2. Define a semantic model
34
55
SEMANTIC CREATE MODEL orders_model (
35
-
name orders_model,
36
56
table orders,
37
57
primary_key order_id
38
58
);
@@ -67,12 +87,13 @@ Creates a new semantic model linked to a physical table.
67
87
68
88
```sql
69
89
SEMANTIC CREATE MODEL model_name (
70
-
name model_name,
71
90
table physical_table_name,
72
91
primary_key pk_column
73
92
);
74
93
```
75
94
95
+
The model name may also be repeated inside the body for compatibility, but it must match the name after `MODEL`.
96
+
76
97
### SEMANTIC CREATE METRIC
77
98
78
99
Defines a metric (aggregation) on the current model.
@@ -286,23 +307,21 @@ SELECT sidemantic_rewrite_sql('SELECT orders.revenue FROM orders');
0 commit comments