MCPcopy Create free account
hub / github.com/ExtendDB/extenddb / complex_multi_attribute_put

Function complex_multi_attribute_put

tests/rust/src/put_item_edge.rs:323–346  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321
322#[tokio::test]
323async fn complex_multi_attribute_put() {
324 let c = client();
325 let t = tables().await;
326 let mut item = create_item(&t.simple_key_string);
327 item.insert("strAttr".into(), s("hello"));
328 item.insert("numAttr".into(), n(123));
329 item.insert("blobAttr".into(), b("binaryData"));
330 item.insert("ssAttr".into(), ss(&["a", "b", "c"]));
331 item.insert("nsAttr".into(), ns(&[1, 2, 3]));
332 item.insert("bsAttr".into(), bs(&["b1", "b2"]));
333 item.insert("boolAttr".into(), bool_val(true));
334 item.insert("nullAttr".into(), null_val());
335 item.insert("listAttr".into(), list_val(vec![s("x"), n(9)]));
336 let mut nested = HashMap::new();
337 nested.insert("inner".into(), s("innerVal"));
338 item.insert("mapAttr".into(), map_val(nested));
339 c.put_item()
340 .table_name(&t.simple_key_string)
341 .set_item(Some(item.clone()))
342 .send()
343 .await
344 .unwrap();
345 check_item(c, &t.simple_key_string, &item).await;
346}

Callers

nothing calls this directly

Calls 15

clientFunction · 0.85
tablesFunction · 0.85
create_itemFunction · 0.85
sFunction · 0.85
nFunction · 0.85
bFunction · 0.85
ssFunction · 0.85
nsFunction · 0.85
bsFunction · 0.85
bool_valFunction · 0.85
null_valFunction · 0.85
list_valFunction · 0.85

Tested by

no test coverage detected