rustyroad 1.3.0

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\
              - Reads the active rustyroad.toml environment configuration\n\
              - Never connects to or modifies the configured 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\
             EXAMPLES:\n\
              rustyroad migration validate\n\
              ENVIRONMENT=prod rustyroad migration validate\n",
        )
}