From e6250ae68a4af5ec654505eeec87f2b595d8d8f0 Mon Sep 17 00:00:00 2001 From: Sayan Nandan Date: Thu, 24 Sep 2020 12:04:50 +0530 Subject: [PATCH] Rollout v0.4.3 --- CHANGELOG.md | 7 +++++++ Cargo.lock | 6 +++--- actions.jsonc | 8 ++++++++ cli/Cargo.toml | 2 +- cli/src/main.rs | 2 +- libtdb/Cargo.toml | 2 +- server/Cargo.toml | 2 +- server/src/cli.yml | 2 +- server/src/diskstore/cyansfw.rs | 2 +- server/src/main.rs | 2 +- 10 files changed, 25 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c55ee4cd..4dd3df58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All changes in this project will be noted in this file. +## Version 0.4.3 [2020-09-25] + +> No breaking changes + +This release adds the following actions: +`SSET` , `SUPDATE` , `SDEL` , `DBSIZE` and `FLUSHDB` + ## Version 0.4.2 [2020-09-19] > No breaking changes diff --git a/Cargo.lock b/Cargo.lock index 6bd2c61f..24f3cf84 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -242,7 +242,7 @@ checksum = "a9f8082297d534141b30c8d39e9b1773713ab50fdbe4ff30f750d063b3bfd701" [[package]] name = "libtdb" -version = "0.4.3-alpha.1" +version = "0.4.3" dependencies = [ "bytes", "lazy_static", @@ -564,7 +564,7 @@ dependencies = [ [[package]] name = "tdb" -version = "0.4.3-alpha.1" +version = "0.4.3" dependencies = [ "bincode", "bytes", @@ -678,7 +678,7 @@ dependencies = [ [[package]] name = "tsh" -version = "0.4.3-alpha.1" +version = "0.4.3" dependencies = [ "bytes", "lazy_static", diff --git a/actions.jsonc b/actions.jsonc index c8c012ad..75527cb7 100644 --- a/actions.jsonc +++ b/actions.jsonc @@ -119,5 +119,13 @@ "args": "DBSIZE", "desc": "Returns the number of key/value pairs stored in the database", "return": "Number of keys that exist in the database as an unsigned int" + }, + { + "name": "FLUSHDB", + "since": "0.4.3", + "complexity": "O(n)", + "args": "FLUSHDB", + "desc": "Removes all the key/value pairs stored in the database", + "return": "(Code: 0) if the operation succeeded" } ] \ No newline at end of file diff --git a/cli/Cargo.toml b/cli/Cargo.toml index fad504f4..64cebe07 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tsh" -version = "0.4.3-alpha.1" +version = "0.4.3" authors = ["Sayan Nandan "] edition = "2018" diff --git a/cli/src/main.rs b/cli/src/main.rs index 6a4beb52..3493cda0 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -22,7 +22,7 @@ mod argparse; mod protocol; use tokio; -const MSG_WELCOME: &'static str = "TerrabaseDB v0.4.3-alpha.1"; +const MSG_WELCOME: &'static str = "TerrabaseDB v0.4.3"; #[tokio::main] async fn main() { diff --git a/libtdb/Cargo.toml b/libtdb/Cargo.toml index 994cefb1..f9f1b904 100644 --- a/libtdb/Cargo.toml +++ b/libtdb/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "libtdb" -version = "0.4.3-alpha.1" +version = "0.4.3" authors = ["Sayan Nandan "] edition = "2018" diff --git a/server/Cargo.toml b/server/Cargo.toml index d031c9d0..83749d04 100644 --- a/server/Cargo.toml +++ b/server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tdb" -version = "0.4.3-alpha.1" +version = "0.4.3" authors = ["Sayan Nandan "] edition = "2018" diff --git a/server/src/cli.yml b/server/src/cli.yml index 7223e160..5439622d 100644 --- a/server/src/cli.yml +++ b/server/src/cli.yml @@ -20,7 +20,7 @@ # name: TerrabaseDB Server -version: 0.4.3-alpha.1 +version: 0.4.3 author: Sayan N. about: The TerrabaseDB Database server args: diff --git a/server/src/diskstore/cyansfw.rs b/server/src/diskstore/cyansfw.rs index c249f38e..1b03fdc7 100644 --- a/server/src/diskstore/cyansfw.rs +++ b/server/src/diskstore/cyansfw.rs @@ -25,7 +25,7 @@ //! //! What this essentially means — is that, //! instead of taking a whole object and then writing it to the disk, like what persistent -//! storage did till v0.4.3-alpha.1, `CyanSWF` takes a part, encodes into its _kinda binary_ +//! storage did till v0.4.3, `CyanSWF` takes a part, encodes into its _kinda binary_ //! equivalent, and then writes that to disk. It then takes the next part, encodes it, and then writes it to disk. //! The advantage of using this method is that the entire object does not need to be encoded at once //! which has an additional memory and CPU time overhead. diff --git a/server/src/main.rs b/server/src/main.rs index 82563cfc..4834181a 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -44,7 +44,7 @@ use jemallocator::Jemalloc; #[global_allocator] static GLOBAL: Jemalloc = Jemalloc; -static MSG: &'static str = "TerrabaseDB v0.4.3-alpha.1 | https://github.com/terrabasedb/terrabase"; +static MSG: &'static str = "TerrabaseDB v0.4.3 | https://github.com/terrabasedb/terrabase"; static TEXT: &'static str = " _______ _ _____ ____ |__ __| | | | __ \\ | _ \\