pub struct Options {
pub database: String,
pub commands: Vec<Command>,
pub stop_after_commands: bool,
pub interactive: Option<bool>,
pub echo: bool,
pub bail: bool,
pub readonly: bool,
pub settings: Settings,
}Expand description
Everything the command line can set.
Fields§
§database: StringThe database to open. :memory: until there is a storage format to open a file with.
commands: Vec<Command>What to run before reading input, in the order it was given.
stop_after_commands: boolWhether to stop after the commands rather than reading input.
interactive: Option<bool>Set by -interactive and -batch, which override the guess made from whether input is a
terminal.
echo: boolPrint each statement before running it.
bail: boolStop at the first error even when reading a script.
readonly: boolOpen without allowing writes.
settings: SettingsHow results are printed, and everything that goes with it.
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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