Crates.io | sqlitemap |
lib.rs | sqlitemap |
version | 0.2.0 |
source | src |
created_at | 2018-06-14 00:14:53.83335 |
updated_at | 2018-10-02 18:30:22.297618 |
description | An alternative map implementation, backed by a sqlite database |
homepage | |
repository | https://gitgud.io/Taywee/sqlitemap |
max_upload_size | |
id | 70017 |
size | 14,744 |
An attempt at replicating much of the HashMap interface and trait implementations but using sqlite as a backend instead. Just uses rusqlite and depends on its traits as much as possible, using its ToSql and FromSql traits to insert and retrieve any objects. This means that most checking is done at runtime, unfortunately, because Rust can't know at compile time if the object being pulled is deserializable or not. Results have to wrap most database operations to bubble sql and database errors, so many retrieval functions are an Option within a result.