Fork me on GitHub
Jakub Holý (HolyJak)12:04:22

@tony.kay Fulcro and RAD are awesome! Thanks a lot!

👍 12
Trey Wilkinson17:04:20

What is the recommended database to use with fulcro? It doesn't look like EQL provides any mechanism to actually store data. Also is there a section in the book which talks about this because I can't find anything.


I'm sure that almost everyone would recommend Datomic.

Chris O’Donnell17:04:18

If you're using pathom in the backend, as is recommended, you can use whichever data store you like. I tend to use postgres, myself.


i used to recommend datomic (we built our product with datomic), but with pathom and RAD i’d strongly consider postgres


datomic is still really nice, but postgres is just so battle hardened, extensible, and has so many features


in datomic you still can’t store local-dates, you have store strings, just one example


that said it definitely depends on what your are building, in general can’t go wrong with either IMO


@U09FEH8GN about dates, you can store #inst on datomic, right?


right only insts


none of the other java time types


of course it is a suboptimal solution


probably better to add the usual domain<->db conversion layer


which yes, the JDBC layer hides with its type-based dispatch


Evaluating RAD for a project, and wanted to check if anyone had written a database adapter for Datomic client/cloud yet? I’m about to do just that, but wanted to check if someone had already done it, would save me a couple of hours.

💯 4

not that I know of @mdhaney. If you can adapt the one that is already there, I’d appreciate it…it seems like one adapter should be able to support both?


I think it is just a matter of getting rid of the small number of uses of the entity API (one I can think of) and checking to make sure pull-many is covered


I think @bbss did something for a similar lib?


Yeah, getting rid of entity api is pretty easy, and I wrote a replacement for pull-many for a previous project, so should be covered there.


I’m going to try to do it in the same adapter. Might be tricky with the different dependencies, but should be possible using different deps aliases. I’m thinking a datomic-client alias alongside the existing datomic alias should do the trick.


The plugin does not have a Datomic dependency. You are required to pull one in to use it…so that should be ok


ah, but the requires could be a little weird


but it is CLJ, so I think that makes it possible: you can just dynamically require the right thing at runtime instead of in the ns form. @mdhaney

👍 4

Re datomic is it assumed to be running with cloud?


Ok cool, I was wondering as the on-prem license can be pretty pricy…