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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user