BREAKING CHANGE: changed commands as follows D -> Docker Dc -> Compose Dj -> Django Pg -> Postgres
19 lines
312 B
Rust
19 lines
312 B
Rust
use std::path::PathBuf;
|
|
|
|
use clap::Subcommand;
|
|
|
|
#[derive(Subcommand, Debug)]
|
|
pub enum Postgres {
|
|
/// Import dump via pg_restore
|
|
Import {
|
|
#[arg(value_enum)]
|
|
path: PathBuf,
|
|
},
|
|
|
|
/// Dump via pg_dump with format=c
|
|
Dump {
|
|
#[arg(value_enum)]
|
|
path: PathBuf,
|
|
},
|
|
}
|