Fork me on GitHub

Hey folks, I've been working recently on a test factory library, and just put out a first release. It's still very early days but it's ready for people to take it for a test run.

🚀 2

Talking to both clients and individuals it seemed several people were missing something like this, especially those that had worked with something similar in other languages (e.g. FactoryBot in Ruby). If that's you then I definitely would love to hear from you!


Part of the value of something like this is that it integrates easily with the database, but sadly things aren't exactly standardized when it comes to mapping clojure data to relational tables. Datalog dbs are a bit easier. We've added an initial implementation of next.jdbc and datomic support, and tried to make especially the jdbc support configurable enough, but this is an area where some real-world feedback would be helpful.


Sounds wonderful for me! Just a question, is there a "function API" that we could use, instead of defactory?


You can pass maps to build-val and friends


Have a look at the code, there's not a lot of magic

Noah Bogart18:03:46

Ayyy I built a FactoryBot like library for Typescript, was thinking about something like this for Clojure. Can't wait it read this over, see how it feels in use

Noah Bogart18:03:19

Want questions/comments here?


Or in #lambdaisland or in DM, it's all good

👍 1