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

Dynamic embedded migrations #2

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

quasi-coherent
Copy link
Owner

Adds a new annotation refinery:finalizeMigration for embedded Rust migrations. It has the effect of building the final query for the migration differently by expecting a type Finalizer in the migration module that implements either FinalizeMigration or AsyncFinalizeMigration. These traits have two methods, initialize and finalize. initialize creates value of the finalizer from a database connection. finalize says how to create the migration SQL query.

@quasi-coherent quasi-coherent force-pushed the daniel.donohue/dynamic-embedded branch from 98cbe18 to f1f2067 Compare September 30, 2024 09:07
@quasi-coherent quasi-coherent merged commit 64f456a into main Sep 30, 2024
@quasi-coherent quasi-coherent deleted the daniel.donohue/dynamic-embedded branch September 30, 2024 11:06
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