qldb 0.1.1

Driver for Amazon's QLDB Database implemented in pure rust.
Documentation
<!-- cargo-sync-readme start -->

# Amazon's QLDB Driver

Driver for Amazon's QLDB Database implemented in pure rust.

[![Documentation](https://docs.rs/qldb/badge.svg)](https://docs.rs/qldb)
[![Crates.io](https://img.shields.io/crates/v/qldb)](https://crates.io/crates/qldb)

## Example

```rust,no_run
use qldb::QLDBClient;
let client = QLDBClient::default("rust-crate-test").await?;

let mut map = HashMap::new();
map.insert(
    "test_column".to_string(),
    IonValue::String("test_value".to_string()),
);
IonValue::Struct(map)

client
    .transaction_within(|client| {
        let test_table = test_table.clone();
        async move {
            
            let _ = client
                .query(&format!("INSERT INTO {} VALUE ?", test_table), &[get_value_to_insert()])
                .await;
                
            client.rollback().await
        }
    })
    .await?;
```

# Test

For tests you will need to have some AWS credentials in your 
PC (as env variables or in ~/.aws/credentials). There needs
to be a QLDB database with the name "rust-crate-test" in the 
aws account. The tests need to be run sequentially, so in order 
to run the tests please run the following command:

```sh
RUST_TEST_THREADS=1 cargo test
```

<!-- cargo-sync-readme end -->