Skip to content

Commit

Permalink
Release v0.9.0-beta18
Browse files Browse the repository at this point in the history
  • Loading branch information
luposlip committed Oct 22, 2024
1 parent 882855b commit e12949c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ All notable changes to this project will be documented in this file. This change
- Timestamps for historical versions
- Optimize (speed+size of) low level index format

## [0.9.0-beta18] - 2024-10-22

Update clarch to enhance decompression of zip entries

## [0.9.0-beta17] - 2024-10-21

### Enhanced
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# nd-db

```clojure
[com.luposlip/nd-db "0.9.0-beta17"]
[com.luposlip/nd-db "0.9.0-beta18"]
```

_Newline Delimited (read-only) Databases!_
Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(defproject com.luposlip/nd-db "0.9.0-beta17"
(defproject com.luposlip/nd-db "0.9.0-beta18"
:description "Clojure library to use newline delimited files as fast read-only databases."
:url "https://github.com/luposlip/nd-db"
:license {:name "Apache License, Version 2.0"
:url "https://www.apache.org/licenses/LICENSE-2.0"}
:dependencies [[org.clojure/clojure "1.12.0"]
[com.taoensso/nippy "3.4.2"]
[com.luposlip/clarch "0.3.5"]
[com.luposlip/clarch "0.3.6"]
[digest "1.4.10"]
[com.cnuernber/charred "1.034"]]
:global-vars {*warn-on-reflection* true}
Expand Down
9 changes: 2 additions & 7 deletions src/nd_db/core.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
(ns nd-db.core
(:require [clojure
[string :as str]
[edn :as edn]]
[string :as str]]
[clojure.java.io :as io]
[clarch.core :as clarch]
[nd-db
Expand Down Expand Up @@ -36,10 +35,6 @@
ndio/serialize-db
(ndix/re-index (:log-limit params)))))))

(def zip-parser (fn [& args]

(apply clarch/raw-bytes->uncompressed-bytes args)))

(defn zip-db [& {:as p}]
{:post [(ndut/db? %)]}
(let [parsed (ndio/parse-params p)
Expand All @@ -59,7 +54,7 @@
)))
:doc-parser
(fn [doctype-parser]
(comp doctype-parser zip-parser)))))
(comp doctype-parser clarch/zip-bytes->uncompressed-bytes)))))

(defn db
"Tries to read the specified pre-parsed database from filesystem.
Expand Down

0 comments on commit e12949c

Please sign in to comment.