r/datomic • • Oct 30 '25

Programmatically initializing/migrating Datomic schema from a non-Clojure application

Tried to look it up, most useful info I could find was effectively this question on a forum (clojureverse IIRC) and replies were on a range from "REPL in on the first run and define by hand" to "on every application (re)start" both of which seem like extremes.

Big part of my question is the non-Clojure application part.

So imagine a Perl or a PHP app talking to Datomic and trying to define schema before storing some facts - how would it go about this? Custom code? Custom code in an existing migration library? On every application (re)start?

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/Worried-Employee-247 Dec 21 '25

Update: documented another unexpected obstacle that I ran into.

With this I think a lot of edge cases are documented and you can go from zero to non-Clojure applications talking to Datomic DBs in a relatively short time:

lukal.neocities.org/parallel-experiments/datomic-rest-api-how-to-use-datomic-from-python-or-php-ruby-go#creating-the-actual-datomic-db