MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / create_orders

Function create_orders

nodedb/tests/sql_grouping_sets.rs:15–32  ·  view source on GitHub ↗
(server: &TestServer)

Source from the content-addressed store, hash-verified

13// ── Fixture ──────────────────────────────────────────────────────────────────
14
15async fn create_orders(server: &TestServer) {
16 server
17 .exec("CREATE COLLECTION orders TYPE DOCUMENT SCHEMALESS")
18 .await
19 .unwrap();
20
21 server
22 .exec(
23 "INSERT INTO orders (id, region, country, sales) VALUES \
24 ('1', 'AMER', 'US', 100), \
25 ('2', 'AMER', 'US', 200), \
26 ('3', 'AMER', 'CA', 150), \
27 ('4', 'EMEA', 'DE', 300), \
28 ('5', 'EMEA', 'FR', 250)",
29 )
30 .await
31 .unwrap();
32}
33
34// ── Tests ─────────────────────────────────────────────────────────────────────
35

Calls 1

execMethod · 0.45

Tested by

no test coverage detected