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
+2 -2
View File
@@ -16,9 +16,9 @@ pub struct ReqFilter {
pub id: Option<String>,
pub author: Option<String>,
pub kind: Option<u64>,
#[serde(rename = "e#")]
#[serde(rename = "#e")]
pub event: Option<String>,
#[serde(rename = "p#")]
#[serde(rename = "#p")]
pub pubkey: Option<String>,
pub since: Option<u64>,
pub authors: Option<Vec<String>>,