Odonno / surrealdb-migrations

An awesome SurrealDB migration tool, with a user-friendly CLI and a versatile Rust library that enables seamless integration into any project.
https://crates.io/crates/surrealdb-migrations
MIT License
231 stars 20 forks source link

Beta and nightly version support #63

Open liamwh opened 11 months ago

liamwh commented 11 months ago

I would like to be able to use surrealdb-migrations with the beta / nightly images.

It would be amazing if CI/CD could be setup to release a beta version and a nightly version of the surrealdb-migrations crate, like they do with surrealdb crate itself.

Odonno commented 11 months ago

surrealdb-migrations tries to be up-to-date with the latest versions of surrealdb. The idea of beta versions is interesting. I do not think it will be difficult as it is, as long as a surrealdb crate is available.

The same would go for all crate versions, following their release versioning. But I not seem to find nightly version here: https://crates.io/crates/surrealdb/versions

liamwh commented 11 months ago

the versioned surreal DB crates can be found here:

surrealdb-beta: https://docs.rs/surrealdb-beta/latest/surrealdb/ surrealdb-nightly: https://crates.io/crates/surrealdb-nightly/1.20231209.1212550

These crates work with their equivalent docker images such as this one: https://hub.docker.com/layers/surrealdb/surrealdb/nightly/images/sha256-e4eb144c92346837c3a28d8ba729d65cf5146f9f5196fbac2e1a1117c0d84529?context=explore

To clarify this issue: the idea is to create a beta and nightly versions of the surrealdb-migrations (so surrealdb-migrations-beta and surrealdb-migrations-nightly) or an equivalent way of providing beta/nightly support so that they can also be used with the beta and nightly versions of surrealdb. Theoretically, no code changes should be required, only changing which surrealdb crate is depended on and which surrealdb binary version is used during testing.

liamwh commented 10 months ago

Relevant for setting up CI for beta/nightly versions: https://surrealdb.com/blog/introducing-our-new-monthly-release-schedule