From 42f3b4e5c095953e0c6f4b0d6468f1b7be6f026a Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Wed, 8 Apr 2020 00:35:39 +0200 Subject: [PATCH] Partition#delete "element" --- shard.yml | 2 +- src/dodb/partition.cr | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/shard.yml b/shard.yml index f1d8e80..43fbac1 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: dodb -version: 0.2.0 +version: 0.2.1 authors: - Luka Vandervelden diff --git a/src/dodb/partition.cr b/src/dodb/partition.cr index ec0d06a..ed3849e 100644 --- a/src/dodb/partition.cr +++ b/src/dodb/partition.cr @@ -53,6 +53,10 @@ class DODB::Partition(V) < DODB::Indexer(V) r_value end + def delete(partition) + delete partition, do true end + end + def delete(partition, &matcher) partition_directory = indexing_directory partition