mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 09:21:05 +00:00
Deprecate "paritydb-experimental" CLI in favour or "paritydb" (#10975)
* Deprecate paritydb-experimental * Updated comment
This commit is contained in:
@@ -201,8 +201,10 @@ pub enum Database {
|
||||
/// ParityDb. <https://github.com/paritytech/parity-db/>
|
||||
ParityDb,
|
||||
/// Detect whether there is an existing database. Use it, if there is, if not, create new
|
||||
/// instance of paritydb
|
||||
/// instance of ParityDb
|
||||
Auto,
|
||||
/// ParityDb. <https://github.com/paritytech/parity-db/>
|
||||
ParityDbDeprecated,
|
||||
}
|
||||
|
||||
impl std::str::FromStr for Database {
|
||||
@@ -212,6 +214,8 @@ impl std::str::FromStr for Database {
|
||||
if s.eq_ignore_ascii_case("rocksdb") {
|
||||
Ok(Self::RocksDb)
|
||||
} else if s.eq_ignore_ascii_case("paritydb-experimental") {
|
||||
Ok(Self::ParityDbDeprecated)
|
||||
} else if s.eq_ignore_ascii_case("paritydb") {
|
||||
Ok(Self::ParityDb)
|
||||
} else if s.eq_ignore_ascii_case("auto") {
|
||||
Ok(Self::Auto)
|
||||
@@ -224,7 +228,7 @@ impl std::str::FromStr for Database {
|
||||
impl Database {
|
||||
/// Returns all the variants of this enum to be shown in the cli.
|
||||
pub fn variants() -> &'static [&'static str] {
|
||||
&["rocksdb", "paritydb-experimental", "auto"]
|
||||
&["rocksdb", "paritydb", "paritydb-experimental", "auto"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user