Fork me on GitHub
#datomic
<
2016-11-17
>
PB13:11:37

So I know everybody has their own version of this… But I have just “finished" my first iteration of my “datomic helpers" library. Any feedback would be greatly appreciated: https://github.com/petergarbers/molecule

Matt Butler15:11:41

I want to do a case insensitive search on a string value, from googling I’ve gathered its possible but haven’t found any info on how to implement it, any pointers? 🙂

PB15:11:44

@mbutler: [(.equalsIgnoreCase ^String ?db-val ?val)]

Matt Butler15:11:21

ah awesome @petr , I seem to remember something about needing to require a function into the file if it wasn't in clj.core that the case here?

PB15:11:41

Not as far as I know

PB15:11:51

Or not anywhere I’ve done it

Matt Butler15:11:18

Ok cool, well thanks again :thumbsup:

timgilbert16:11:11

Hi all... I've figured out how to use reified transactions such that I'm attaching a :request/person ref to each transaction pointing to the logged-in user, but I'm a little baffled by how I query the data to get the reified data out. Anyone have examples of that?

Alex Miller (Clojure team)16:11:12

@mbutler that’s a function on java.lang.String. all java.lang classes are imported by default.

marshall16:11:32

@timgilbert This blog post: http://blog.datomic.com/2016/08/log-api-for-memory-databases.html discusses how to use the log API to pull out data about transactions

marshall16:11:53

I’d also suggest the reified transactions video here: http://www.datomic.com/videos.html

timgilbert16:11:17

Cool, thanks @marshall, that looks helpful. I did watch that video some time back and thought it was really good, but I've found it difficult to grep through 😉

marshall16:11:34

there’s your unicorn company idea - grep for videos

jarppe18:11:37

@timgilbert I was just wondering the same. I made this to test just that: https://gist.github.com/jarppe/7a7b3234b6ce0b704df8046c67aad988

jarppe18:11:41

hope it helps

timgilbert19:11:44

Thanks @jarppe, that is helpful