| Crates.io | spring-sqlx-migration-plugin |
| lib.rs | spring-sqlx-migration-plugin |
| version | 0.4.0 |
| created_at | 2024-10-12 08:17:59.726743+00 |
| updated_at | 2025-05-15 18:51:23.764805+00 |
| description | A plugin to run SQLx migrations automatically within the SpringRS framework |
| homepage | https://rustlang-es.org |
| repository | https://github.com/Phosphorus-M/spring-sqlx-migration-plugin |
| max_upload_size | |
| id | 1406299 |
| size | 63,688 |
It's just a plugin to execute the migrations of Sqlx into SpringRS
Key Features:
Just add into the app.toml the initial config for this plugin:
[sqlx]
uri = "postgres://postgres:xudjf23adj213@127.0.0.1:5432"
[sqlx-migration]
migration_folder = "./migrations"
And into your main.rs
#[auto_config(WebConfigurator)] // auto config web router
#[tokio::main]
async fn main() {
App::new()
.add_plugin(SqlxPlugin) // Add plug-in
.add_plugin(SqlxMigrationPlugin) // Add plug-in
.add_plugin(WebPlugin)
.run().await
}