Fork me on GitHub
#biff
<
2023-11-19
>
Jacob O'Bryant04:11:57

Just pushed an example repo for using Postgres with Biff: https://github.com/jacobobryant/biff-postgres. See this commit for the changes: https://github.com/jacobobryant/biff-postgres/commit/d8858284f3131a458fe1267000b2868eb8bfdd2b. I'll write up a blog post for it soon that walks through the changes. You can follow the same pattern to use Datomic or any other database; I probably won't prioritize writing a version of this how-to for Datomic myself in the near future.

👍 8
refset15:11:21

cool! does Malli still have a role elsewhere in the stack or is it removed entirely?

Jacob O'Bryant17:11:38

nope, it's removed

Jacob O'Bryant17:11:06

once XT2 is stable i'll probably make sql the default and reuse the queries from this repo

👌 1
Jacob O'Bryant17:11:57

(just because more people are already familiar with sql; I'll still be using datalog myself)

👍 2
aaelony00:11:20

This is really cool! Perhaps :local/root is hardcoded though in deps.edn ? Getting

Error building classpath. Local lib com.biffweb/xtdb-mock not found: /home/jacob/dev/biff/libs/xtdb-mock

Jacob O'Bryant02:11:34

oh crap yeah that shouldn't be local

Jacob O'Bryant02:11:01

I'll need to push the repo for the biff commit with xtdb-mock; that's just on my local machine right now

metal 1
aaelony22:11:50

awesome! can't wait to try it out later in the week...

🙌 1