(c: &aws_sdk_dynamodb::Client)
| 37 | } |
| 38 | |
| 39 | async 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] |
| 80 | async fn unicode_string_values() { |
no test coverage detected