Skip to content

Generalize the refresh hub from JVM consumers to any binding - #79

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:tooling/generalize-refresh-hub
Jul 28, 2026
Merged

Generalize the refresh hub from JVM consumers to any binding#79
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:tooling/generalize-refresh-hub

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

tools/refresh-binding.sh is the generic one-command refresh entry point for every binding (GoMEOS, meos-rs, PyMEOS, MEOS.NET, and the JVM consumers): MobilityDB -> provision-meos.sh (catalog, and for native/FFI bindings libmeos) -> the binding's own generate + build. It is a superset of the JVM hub: BUILD_LIBMEOS (native vs pure-catalog), a conf-settable MDB_REF (bindings that pin a MEOS ref), a configurable CATALOG_DEST (generators that take the catalog path as an argument set it empty, e.g. MEOS.NET), and the JMEOS-jar leg made conditional on JMEOS_COORDS. refresh-jvm-chain.sh becomes a thin alias for it (--consumer aliases --binding), so the three merged JVM consumers keep working unchanged. Each binding carries a tools/refresh.conf and a tools/refresh-from-master.sh wrapper. Proof: a local run over GoMEOS through this hub derives libmeos + the catalog and drives GoMEOS's own tools/codegen.py — 3129 idiomatic Go wrappers emitted from the staged catalog.

refresh-jvm-chain.sh refreshed only the JVM consumers. Every binding shares the same chain: MobilityDB -> provision-meos.sh (catalog, and for native/FFI bindings libmeos) -> the binding's own generate + build. refresh-binding.sh is that generic entry point, a superset of the JVM hub: BUILD_LIBMEOS (native vs pure-catalog), a conf-settable MDB_REF (bindings that pin a MEOS ref), a configurable CATALOG_DEST (generators that take the catalog path as an argument set it empty), and the JMEOS-jar leg made conditional on JMEOS_COORDS.

refresh-jvm-chain.sh becomes a thin alias for it, so the JVM consumers keep working unchanged; a JVM consumer is just a binding whose refresh.conf sets JMEOS_COORDS.
@estebanzimanyi
estebanzimanyi merged commit aa5734e into MobilityDB:master Jul 28, 2026
1 check passed
@estebanzimanyi
estebanzimanyi deleted the tooling/generalize-refresh-hub branch July 28, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant