feat: store events in SQLite and allow querying

Events are persisted in a local database, and can be queried through
subscriptions.
This commit is contained in:
Greg Heartsfield
2021-12-11 15:48:59 -06:00
parent 23f47899cd
commit 65969a4121
11 changed files with 442 additions and 55 deletions
+8
View File
@@ -27,6 +27,14 @@ pub enum Error {
WebsocketError(WsError),
#[error("Command unknown")]
CommandUnknownError,
#[error("SQL error")]
SqlError(rusqlite::Error),
}
impl From<rusqlite::Error> for Error {
fn from(r: rusqlite::Error) -> Self {
Error::SqlError(r)
}
}
impl From<serde_json::Error> for Error {