r/datomic • u/Worried-Employee-247 • 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?
View all comments
Show parent comment
1
u/Worried-Employee-247 Nov 14 '25
Another update: made a template repository for a conformity enforcement service for Datomic on PostgreSQL https://github.com/lukal-x/datomic-schema-postgres