psqlgen 0.1.2

PostgreSQL Query generation from migrations.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::path::PathBuf;

use clap::Parser;

/// Program to generate SQL queries from SQL migration files.
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
pub struct Args {
    /// The path to the directory to read from. This has to be a folder containing valid .sql files.
    #[arg(short, long)]
    pub input_dir: PathBuf,

    /// The path to the directory where the generated SQL files will be placed.
    #[arg(short, long)]
    pub output_dir: PathBuf,
}