#dynamo-db #rusoto

nightly korat

Convenience methods for the conversion of rusoto attribute values to concrete types for dynamodb

5 releases

Uses old Rust 2015

0.2.0 Jan 28, 2018
0.1.3 Sep 16, 2017
0.1.2 Jul 2, 2017
0.1.1 Jun 28, 2017
0.1.0 Jun 26, 2017

#23 in #rusoto


Used in korat_derive

Apache-2.0

21KB
492 lines

Korat

Notice

I'm no longer maintaining this project (I haven't for a few years in fact. Dynomite is a different lib which was initially based on korat.

Intro

Korat is a library for the creation of convenience methods when working with dynamodb items

Korat provides attribute converters for most supported types from rusoto AttributeValue. It also provides a deriveable implementation for try_from and from converters for your structs (to and from rusoto AttributeMap).

This is work in progress.

Serializables

All items implementing the DynamoDBItem trait are serializable and can be stored into DynamoDB tables or as fields within other items

Insertables

As a convenience method for DynamoDBItems you can implement the trait DynamoDBInsertable which provides methods for accessing the keys of the object. This makes it possible to get the keys of an existing item.

In addition to this, when deriving the implementations, a new "Key" struct will be automatically implemented for your types which will allow you to easily create the keys for fetching and querying your DynamoDB tables.

Dependencies

~10–20MB
~273K SLoC