This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-01
Channels
- # admin-announcements (1)
- # beginners (16)
- # boot (22)
- # cider (96)
- # clojure (146)
- # clojure-dev (5)
- # clojure-germany (7)
- # clojure-greece (3)
- # clojure-italy (5)
- # clojure-japan (76)
- # clojure-russia (6)
- # clojure-seattle (1)
- # clojure-sg (1)
- # clojure-uk (19)
- # clojure-ukraine (1)
- # clojurescript (114)
- # code-reviews (11)
- # datomic (42)
- # editors (4)
- # euroclojure (3)
- # jobs (18)
- # ldnclj (59)
- # off-topic (1)
- # om (17)
- # reagent (5)
- # yada (43)
I have small question, I have a hard time getting a schema in clojure. I keep getting
java.lang.RuntimeException: No reader function for tag db/id
This is my schema
[
{
:db/id #db/id[:db.part/user]
:db/ident :company/name
:db/valueType :db.type/string
:db/cardinality :db.cardinality/one
:db/unique :db.index/value
:db/doc "The name of the company"
:db.install/_attribute :db.part/db
}
]
And I try to load it with:
(read-string (slurp "resources/schemas/company.edn"))
I get the error but I don't know how to fix it 😞
Fixed it by using
(d/tempid :db.part/user)
instead of #db/id[:db.part/user]
@mitchelkuijpers: have you already required the datomic namespace?
@a.espolov: nope, rest datomic works against any transactor
@mitchelkuijpers: I mean, I don't use the tag thing, so not sure I can help 😞
I fixed it already 😉
But I don't get why this for example does not fail: https://github.com/Datomic/day-of-datomic/blob/master/src/datomic/samples/schema.clj
@tcrayford: Unfortunately I did not once its run when datomic is running in sql view
@mitchelkuijpers: the tag is for raw data - i.e., edn. The general recommendation is to do what you’ve done - use d/tempid in code to generate temp ids, use #db/id
in edn and read the edn. It might be helpful to see this topic on the mailing list: https://groups.google.com/d/msg/datomic/Fi7iXps2npw/ywEVFKZjJKQJ
Ok awesome thnx @bkamphaus now I get it
@a.espolov: By “sql view” you mean it does not work when using SQL as your Datomic storage? Can you show how you’re invoking the REST launch command? (feel free to obscure any details in URIs, ports, credentials, etc.) As well as the error you’re seeing?
@tcrayford: That’s correct, Datomic query returns sets, which are inherently not ordered
@ericfode: You have a couple options. You can use direct index access for lazy traversal
you could also use index-range or datoms to pass a section of an index at a time to query
Hi @stuarthalloway! Happy to have you here.
Out of curiosity — how large is the Datomic team at Cognitect? I couldn't find a list of devs anywhere on the site.
@bkamphaus: Just checking in - do you have enough info about the potential bug we discussed last week?
@bhagany: using your db, I’ve been able to reproduce it independently (thanks for passing it along). Nothing additional to report at this time.
@ivanreese: almost up-to-date team list is at http://cognitect.com/team
Is there a particular subset who work primarily on Datomic? Again, just curious, no sweat if this isn't public info.
@ghadi: It's something I wish they were a bit more open about. The lack of info about how Datomic is maintained — and especially, how committed they are to it — makes me reluctant to commit myself (and my company) to it.
Cognitect is very committed to growing Datomic and there is a solid team behind it
@ivanreese: anecdotally from what I see on the mailing list, the few bugs that crop up are squashed with a speed I've never seen
@alex Thanks. In all my dealings with them, through all channels, the Cognitect staff have been amazingly responsive. I've just had a hard time figuring out, based on the public signalling, how significant the focus is on Datomic as compared to, say, CLJ or CLJS (which are open source, so it's easier to see who is active and how active they are). After FoundationDB disappeared, I'm a little shy about building my future on top of opaque foundations (pun intended). Your comments here are reassuring, and perhaps my comments might help inform future iterations of your marketing material.