pub(crate) struct Opts {
pg_db_name: String,
pg_user_name: String,
pg_server_host: String,
pg_server_port: u16,
input_dir: PathBuf,
output_dir: PathBuf,
schedule: PathBuf,
log4rs_config: PathBuf,
database_mode: DatabaseMode,
}
Fields§
§pg_db_name: String
Database name used to connect to pg.
pg_user_name: String
Username used to connect to postgresql.
pg_server_host: String
Postgresql server address to test against.
pg_server_port: u16
Postgresql server port to test against.
input_dir: PathBuf
Input directory containing sqls, expected outputs.
output_dir: PathBuf
Output directory containing output files, diff reuslts.
schedule: PathBuf
Schedule file containing each parallel schedule.
log4rs_config: PathBuf
Location for customized log file.
database_mode: DatabaseMode
Database mode
Implementations§
Source§impl Opts
impl Opts
pub(crate) fn pg_user_name(&self) -> &str
pub(crate) fn log4rs_config_path(&self) -> &Path
pub(crate) fn absolutized_input_dir(&self) -> Result<PathBuf>
pub(crate) fn absolutized_output_dir(&self) -> Result<PathBuf>
pub(crate) fn database_name(&self) -> &str
pub(crate) fn schedule_file_path(&self) -> &Path
pub(crate) fn host(&self) -> String
pub(crate) fn port(&self) -> u16
pub(crate) fn database_mode(&self) -> DatabaseMode
Trait Implementations§
Source§impl Args for Opts
impl Args for Opts
Source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentsSource§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Source§impl FromArgMatches for Opts
impl FromArgMatches for Opts
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.Source§impl Parser for Opts
impl Parser for Opts
§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, [exit][Error::exit] on error.
§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, [exit][Error::exit] on error.
§fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
fn try_update_from<I, T>(&mut self, itr: I) -> Result<(), Error>
Update from iterator, return Err on error.
Auto Trait Implementations§
impl Freeze for Opts
impl RefUnwindSafe for Opts
impl Send for Opts
impl Sync for Opts
impl Unpin for Opts
impl UnwindSafe for Opts
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more