Skip to content

Commit 96c6e1e

Browse files
committed
Update history demo
1 parent fffa5f4 commit 96c6e1e

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

demos/demo-history.gif

439 KB
Loading

sqlit/mocks.py

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,29 @@ def create_default_sqlite_adapter() -> MockDatabaseAdapter:
245245
(3, 2, 3, 3, "2024-01-22"),
246246
],
247247
),
248+
# JOIN query results for demo
249+
"join users": (
250+
["user", "product", "qty", "total", "order_date"],
251+
[
252+
("Alice Johnson", "Widget", 2, 19.98, "2024-01-20"),
253+
("Alice Johnson", "Gadget", 1, 19.99, "2024-01-21"),
254+
("Bob Smith", "Gizmo", 3, 89.97, "2024-01-22"),
255+
],
256+
),
257+
"group by": (
258+
["customer", "total_orders", "total_spent"],
259+
[
260+
("Alice Johnson", 2, 39.97),
261+
("Bob Smith", 1, 89.97),
262+
],
263+
),
264+
"restock_urgency": (
265+
["name", "price", "stock", "restock_urgency"],
266+
[
267+
("Gizmo", 29.99, 25, "High"),
268+
("Gadget", 19.99, 50, "Medium"),
269+
],
270+
),
248271
},
249272
default_schema="main",
250273
default_query_result=(

0 commit comments

Comments
 (0)