rustyroad 1.0.28

Rusty Road is a framework written in Rust that is based on Ruby on Rails. It is designed to provide the familiar conventions and ease of use of Ruby on Rails, while also taking advantage of the performance and efficiency of Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use clap::Command;

pub(super) fn build() -> Command {
    Command::new("validate")
        .about("Validate the complete migration chain in an isolated temporary database")
        .long_about(
            "Validates every up.sql migration in timestamp order against a disposable database.\n\n\
             SAFETY:\n\
              - Requires ENVIRONMENT=test (or ENV=test)\n\
              - Reads server credentials only from ./rustyroad.test.toml\n\
              - Never connects to or modifies the configured shared test database\n\
              - Creates a random database and scoped login on PostgreSQL/MySQL, or a temporary file for SQLite\n\
              - Removes disposable database credentials and storage after success or failure\n\n\
             EXAMPLE:\n\
              ENVIRONMENT=test rustyroad migration validate\n",
        )
}