Struct tiny_dynamo::DB [−][src]
pub struct DB { /* fields omitted */ }
Expand description
The central client interface applications will work with
Example
let db = DB::new(
Credentials::new(
env::var("AWS_ACCESS_KEY_ID")?,
env::var("AWS_SECRET_ACCESS_KEY")?,
),
Table::new(
"table-name",
"key-attr-name",
"value-attr-name",
"us-east-1".parse()?,
None
),
Reqwest::new(),
);
Implementations
pub fn new(
credentials: Credentials,
table_info: Table,
transport: impl Transport + 'static
) -> Self
pub fn new(
credentials: Credentials,
table_info: Table,
transport: impl Transport + 'static
) -> Self
Returns a new instance of a DB
Gets a value by its key