4 releases
Uses old Rust 2015
0.1.3 | Sep 16, 2017 |
---|---|
0.1.2 | Jul 2, 2017 |
0.1.1 | Jun 28, 2017 |
0.1.0 | Jun 26, 2017 |
#26 in #rusoto
30KB
705 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.
lib.rs
:
Korat provides rusoto implementations for using an structs as dynamodb items
Dependencies
~10–20MB
~273K SLoC