This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-03
Channels
- # bangalore-clj (2)
- # beginners (29)
- # boot (52)
- # cider (4)
- # clara (3)
- # cljs-dev (34)
- # cljsjs (7)
- # cljsrn (3)
- # clojure (71)
- # clojure-austin (1)
- # clojure-dev (5)
- # clojure-france (20)
- # clojure-russia (51)
- # clojure-spec (9)
- # clojure-uk (20)
- # clojurescript (131)
- # core-async (56)
- # core-logic (6)
- # cursive (50)
- # datascript (19)
- # datomic (16)
- # dirac (118)
- # emacs (100)
- # events (4)
- # hoplon (14)
- # incanter (1)
- # jobs (7)
- # jobs-discuss (96)
- # jobs-rus (21)
- # lein-figwheel (5)
- # leiningen (21)
- # off-topic (11)
- # om (45)
- # onyx (42)
- # pamela (1)
- # pedestal (22)
- # portland-or (3)
- # re-frame (8)
- # reagent (5)
- # ring (9)
- # robots (1)
- # spacemacs (14)
- # specter (28)
- # sql (2)
- # untangled (165)
is there any reason datascript tends to use attributes o the form: :foo/name :dog/age :student/gender instead of "name", "age", or "gender" ?
That's not really related to datascript, it's generally recommended to switch to namespaced keywords.
then when I lolk up :computer/name, it's not returning stuff with :employee/name or :student/name
You see a piece of code anywhere and understand immediately with what it works: persons, goods, etc
It's impossible to search for just "name", too many unnecessary stuff will pop up as well
@tonsky: I completely agree with your logic. Why does this logic not also apply to vec2? i.e. {:x 20 :y 40} vs {:vec2/x 20 :vec2/y 40} people tend ot use the former more than the latter
Is it still the case that I can't delete non-existing refs? I am looking at the code for avoiding this and I'd really like to get rid of it. Apart from seeming unnecessary, it slows down my app considerably, because when doing mass-deletes I have to first find all existing entities, just to avoid deleting non-existing ones.
(let [c (ds/create-conn)]
(ds/transact! c [[:db.fn/retractEntity 100]]))
=>
{:db-before {},
:db-after {},
:tx-data [],
:tempids {:db/current-tx 536870913},
:tx-meta nil}
(let [c (ds/create-conn)]
(ds/transact! c [[:db/retract 100 :foo :bar]]))
=>
{:db-before {},
:db-after {},
:tx-data [],
:tempids {:db/current-tx 536870913},
:tx-meta nil}
[datascript "0.15.5"]