pub struct SqlConsole {
pub input: String,
pub cursor: usize,
pub warehouse: String,
pub running: bool,
pub data: Option<Result<TableData, String>>,
pub last_sql: String,
pub scroll: usize,
pub col: usize,
}Expand description
Free-form SQL prompt with results, backed by the preview machinery.
Fields§
§input: String§cursor: usizeCaret position in input, counted in characters.
warehouse: StringDisplay name of the warehouse the last query ran on.
running: bool§data: Option<Result<TableData, String>>§last_sql: StringThe statement that produced data.
scroll: usize§col: usizeFirst visible result column (shift+←/→ pages wide results).
Auto Trait Implementations§
impl Freeze for SqlConsole
impl RefUnwindSafe for SqlConsole
impl Send for SqlConsole
impl Sync for SqlConsole
impl Unpin for SqlConsole
impl UnsafeUnpin for SqlConsole
impl UnwindSafe for SqlConsole
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more