We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fffa5f4 commit 96c6e1eCopy full SHA for 96c6e1e
2 files changed
demos/demo-history.gif
439 KB
sqlit/mocks.py
@@ -245,6 +245,29 @@ def create_default_sqlite_adapter() -> MockDatabaseAdapter:
245
(3, 2, 3, 3, "2024-01-22"),
246
],
247
),
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
271
},
272
default_schema="main",
273
default_query_result=(
0 commit comments