Crates.io | spring-sqlx-migration-plugin |
lib.rs | spring-sqlx-migration-plugin |
version | |
source | src |
created_at | 2024-10-12 08:17:59.726743 |
updated_at | 2025-02-01 22:16:49.488449 |
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 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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
}