This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-04
Channels
- # announcements (7)
- # beginners (37)
- # boot (6)
- # calva (13)
- # cider (13)
- # cljdoc (52)
- # cljs-dev (9)
- # clojure (117)
- # clojure-europe (3)
- # clojure-italy (12)
- # clojure-nl (21)
- # clojure-russia (8)
- # clojure-spec (77)
- # clojure-uk (20)
- # clojurescript (142)
- # community-development (6)
- # cursive (5)
- # datomic (13)
- # emacs (9)
- # figwheel-main (20)
- # fulcro (33)
- # graphql (11)
- # instaparse (6)
- # klipse (1)
- # off-topic (7)
- # om (8)
- # quil (7)
- # re-frame (11)
- # reagent (39)
- # reitit (10)
- # shadow-cljs (36)
- # spacemacs (3)
- # test-check (3)
- # tools-deps (83)
- # utah-clojurians (31)
- # vim (14)
There is something like it for clojure https://github.com/harelba/q ? Run SQL queries on hash-maps/arrays or something like that? I know datascript. But I'm looking for SQL
I'ts not about a in-memory db
It's about search in colls using SQL language
like datomic/datscript (d/q '[:find ?e ... :in $] [[1 2 3] [3 4 5]...] )
Something like it.
(data-sql "SELECT * FROM $1 WHERE name LIKE a" [{:name "a"} {:name "b"}]) ;;=> [{:name "a"}]
I guess I’m suggesting you could build that construct on top of an in-memory sql db. Your data-sql could add the items to a temporary db, execute the query, and return the results, close the db? I was assuming this was just for tests or something - if it’s for production code then maybe that’s a poor strategy.