Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletion of ragtime.jdbc/load-files breaks ragtime-clj #162

Open
lread opened this issue Nov 9, 2024 · 5 comments
Open

Deletion of ragtime.jdbc/load-files breaks ragtime-clj #162

lread opened this issue Nov 9, 2024 · 5 comments

Comments

@lread
Copy link

lread commented Nov 9, 2024

Hi @weavejester!

Cljdoc uses ragtime and ragtime-clj.

The ragtime-clj project makes use of ragtime.jdbc/load-files.

ragtime.jdbc/load-files was removed in ragtime 0.10.0 which causes ragtime-clj to fail with No such var: ragtime.jdbc/load-files.

Happy to help if I can.
Maybe it's more appropriate to fix in ragtime-clj? Lemme know!

@weavejester
Copy link
Owner

Ah, apologies, I thought that wasn't being used by anyone else.

I think it's probably better to fix in ragtime-clj. The multimethod has been moved to ragtime.sql/load-file-seq, which allows the same method to support both ragtime.jdbc and ragtime.next-jdbc. Since this is a better design than having two identical multimethods doing the same thing, and since we haven't hit 1.0 yet, it's probably best to mark this as a breaking change and fix it in ragtime-clj.

I'll fix the CHANGELOG to make this clearer, too.

@lread
Copy link
Author

lread commented Nov 9, 2024

Thanks for the reply! I've raised an issue at ragtime-clj.

@lread
Copy link
Author

lread commented Nov 14, 2024

@weavejester, if the author of ragtime-clj is no longer active, would you consider addressing #131 to bring clojure migrations into ragtime itself?

@weavejester
Copy link
Owner

By Clojure migrations, you mean migrations that execute arbitrary functions?

@lread
Copy link
Author

lread commented Nov 22, 2024

Yep, here's an example cljdoc Clojure migration:
https://github.com/cljdoc/cljdoc/blob/master/resources/migrations/010_convert_builds_error_info_from_exception_to_data.clj

Clojure migration should come with a caveat that they should be as self-contained as possible.
You probably don't want migration relying on app code that might change, for example.

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

No branches or pull requests

2 participants