Skip to content

Commit

Permalink
Remove SQLite3 code
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedilger committed Nov 14, 2023
1 parent ba052c5 commit afc2973
Show file tree
Hide file tree
Showing 47 changed files with 23 additions and 1,289 deletions.
53 changes: 0 additions & 53 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,10 @@ Compile with

If you are having performance issues, please see [PERFORMANCE.md](docs/PERFORMANCE.md).

### Upgrading from very old versions

If you are using a version before 0.8.x, you must upgrade to a 0.8.x version and run gossip at least once in order to upgrade from SQLite3 to LMDB. This is because we have now removed the old SQLite3 code. Alternatively, just delete your old gossip directory in your [config dir](https://docs.rs/dirs/latest/dirs/fn.config_dir.html) and start fresh.

## Technology Involved

- Rust Language
Expand Down
1 change: 0 additions & 1 deletion gossip-lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ regex = "1.8"
reqwest = { version = "0.11", default-features=false, features = ["brotli", "deflate", "gzip", "json"] }
resvg = "0.35.0"
rhai = { version = "1.15", features = [ "std", "sync" ]}
rusqlite = { version = "0.29", features = ["bundled", "chrono", "serde_json"] }
sdl2 = { version = "0.35.2", features = ["bundled"], optional = true }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
8 changes: 0 additions & 8 deletions gossip-lib/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pub enum ErrorKind {
RelayPickerError(gossip_relay_picker::Error),
RelayRejectedUs,
ReqwestHttpError(reqwest::Error),
Sql(rusqlite::Error),
SerdeJson(serde_json::Error),
SliceError(std::array::TryFromSliceError),
Speedy(speedy::Error),
Expand Down Expand Up @@ -108,7 +107,6 @@ impl std::fmt::Display for Error {
RelayPickerError(e) => write!(f, "Relay Picker error: {e}"),
RelayRejectedUs => write!(f, "Relay rejected us."),
ReqwestHttpError(e) => write!(f, "HTTP (reqwest) error: {e}"),
Sql(e) => write!(f, "SQL: {e}"),
SerdeJson(e) => write!(f, "SerdeJson Error: {e}"),
SliceError(e) => write!(f, "Slice: {e}"),
Speedy(e) => write!(f, "Speedy: {e}"),
Expand Down Expand Up @@ -249,12 +247,6 @@ impl From<gossip_relay_picker::Error> for ErrorKind {
}
}

impl From<rusqlite::Error> for ErrorKind {
fn from(e: rusqlite::Error) -> ErrorKind {
ErrorKind::Sql(e)
}
}

impl From<reqwest::Error> for ErrorKind {
fn from(e: reqwest::Error) -> ErrorKind {
ErrorKind::ReqwestHttpError(e)
Expand Down
227 changes: 0 additions & 227 deletions gossip-lib/src/storage/import/legacy/mod.rs

This file was deleted.

Loading

0 comments on commit afc2973

Please sign in to comment.