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

Function create_composite_table

tests/rust/src/unicode.rs:39–77  ·  view source on GitHub ↗
(c: &aws_sdk_dynamodb::Client)

Source from the content-addressed store, hash-verified

37}
38
39async fn create_composite_table(c: &aws_sdk_dynamodb::Client) -> String {
40 let name = format!("test_unicode_comp_{}", ts());
41 c.create_table()
42 .table_name(&name)
43 .key_schema(
44 KeySchemaElement::builder()
45 .attribute_name("pk")
46 .key_type(KeyType::Hash)
47 .build()
48 .unwrap(),
49 )
50 .key_schema(
51 KeySchemaElement::builder()
52 .attribute_name("sk")
53 .key_type(KeyType::Range)
54 .build()
55 .unwrap(),
56 )
57 .attribute_definitions(
58 AttributeDefinition::builder()
59 .attribute_name("pk")
60 .attribute_type(ScalarAttributeType::S)
61 .build()
62 .unwrap(),
63 )
64 .attribute_definitions(
65 AttributeDefinition::builder()
66 .attribute_name("sk")
67 .attribute_type(ScalarAttributeType::S)
68 .build()
69 .unwrap(),
70 )
71 .billing_mode(BillingMode::PayPerRequest)
72 .send()
73 .await
74 .unwrap();
75 wait_for_active(c, &name).await;
76 name
77}
78
79#[tokio::test]
80async fn unicode_string_values() {

Callers 1

unicode_in_query_filterFunction · 0.70

Calls 4

table_nameMethod · 0.80
create_tableMethod · 0.80
wait_for_activeFunction · 0.70
buildMethod · 0.45

Tested by

no test coverage detected