Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generalize framework #65

Merged
merged 5 commits into from
Nov 2, 2021
Merged

Generalize framework #65

merged 5 commits into from
Nov 2, 2021

Conversation

jsmassa
Copy link
Contributor

@jsmassa jsmassa commented Oct 25, 2021

  • removes code from default-store only applying to filestore
  • rename variables
  • restructure migration code to use protocols
  • adding existence check for store

Copy link
Member

@whilo whilo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the introduction of the distinction between store creation and store connection. Since this maps to Datahike as well it might be good to also have a high-level konserve protocol to create and connect a store. For me it looks fine, I would just like to understand why we need the underscore names.

@@ -21,7 +21,7 @@
;; durable


(defn get-lock [{:keys [locks] :as store} key]
(defn get-lock [{:keys [locks] :as _store} key]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These underscore names are unusual in Clojure. Why do you need to introduce them? I assume you want to avoid shadowing. I find store' a bit nicer if you really need to avoid shadowing, but usually it should not be necessary in function arguments.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@whilo whilo Oct 29, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TimoKramer thanks, I did not catch up with this newer style guid.

@jsmassa jsmassa merged commit 2e82719 into development Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants