pub struct RunOptions {Show 22 fields
pub selector: Option<String>,
pub set: Option<String>,
pub target: Option<String>,
pub profile: Option<String>,
pub vars: BTreeMap<String, String>,
pub output_name: Option<String>,
pub output_path: Option<String>,
pub dry_run: bool,
pub no_deliver: bool,
pub output_json: Option<PathBuf>,
pub preview: Option<u64>,
pub accept_schema_change: bool,
pub interactive: bool,
pub date: Option<NaiveDate>,
pub scheduled_at: Option<DateTime<Utc>>,
pub live_check: bool,
pub schedule: Option<String>,
pub timezone: Option<String>,
pub manifest_checksum: Option<String>,
pub cancel: CancelToken,
pub keep_runs: Option<usize>,
pub threads: Option<usize>,
}Expand description
What the caller asked for.
Fields§
§selector: Option<String>§set: Option<String>--set <name> or --set all.
target: Option<String>--target as given; the run’s target is Project::target_name.
profile: Option<String>--profile: the inherited connection, for every Binding.
vars: BTreeMap<String, String>§output_name: Option<String>§output_path: Option<String>§dry_run: bool§no_deliver: bool§output_json: Option<PathBuf>Optional isolated run store, plus typed rows under report/binding/query.json.
preview: Option<u64>--preview [N]: row limit per query.
accept_schema_change: bool§interactive: boolWhether a person is at a terminal to answer prompts.
date: Option<NaiveDate>run.date (DRE_RUN_DATE).
scheduled_at: Option<DateTime<Utc>>The instant this run was scheduled for (DRE_RUN_AT): run.now and run.scheduled_at,
and run.date in the run’s timezone unless date is set.
live_check: boolvalidate --live: check statements instead of executing them.
schedule: Option<String>--schedule <name>: run exactly the Bindings that schedule targets, with its vars.
timezone: Option<String>--timezone or DRE_TIMEZONE: above every configured timezone:.
manifest_checksum: Option<String>SHA-256 of the manifest this command wrote, for run_results.json.
cancel: CancelTokenStops the run: no further Binding, statement or delivery starts once it’s cancelled.
keep_runs: Option<usize>--keep-runs or DRE_KEEP_RUNS: above flags: keep_runs.
threads: Option<usize>--threads or DRE_THREADS: how many Bindings may run at once in the whole run, over
each connection’s threads:.