pub struct Catalog { /* private fields */ }Implementations§
Source§impl Catalog
impl Catalog
pub fn new() -> Self
pub fn insert_directive(&mut self, verb: Cow<'_, str>, noun: Cow<'_, str>)
pub fn insert_database(&mut self, database: Cow<'_, str>, schema: Cow<'_, str>)
pub fn insert_table( &mut self, database: Cow<'_, str>, schema: Cow<'_, str>, table: Cow<'_, str>, )
pub fn insert_column( &mut self, database: Cow<'_, str>, schema: Cow<'_, str>, table: Cow<'_, str>, column: Cow<'_, str>, dtype: Cow<'_, str>, null: Nullability, index: usize, )
pub fn insert_procedure( &mut self, database: Cow<'_, str>, schema: Cow<'_, str>, procedure: Cow<'_, str>, )
pub fn insert_keyword(&mut self, keyword: Cow<'_, str>)
pub fn insert_function(&mut self, function: Cow<'_, str>)
pub fn complete_line( &self, context: Context, line: &str, pos: usize, ) -> (usize, Vec<String>)
pub fn get_databases(&self, context: Context) -> Vec<(&str, &str, &str)>
pub fn get_tables( &self, context: Context, line: &str, ) -> Vec<(&str, &str, &str)>
pub fn get_columns( &self, context: Context, line: &str, ) -> Vec<(&str, &str, &str, &str, Option<&Payload>)>
pub fn get_procedures( &self, context: Context, line: &str, ) -> Vec<(&str, &str, &str)>
pub fn get_keywords(&self) -> Vec<&str>
pub fn get_functions(&self) -> Vec<&str>
Auto Trait Implementations§
impl Freeze for Catalog
impl RefUnwindSafe for Catalog
impl Send for Catalog
impl Sync for Catalog
impl Unpin for Catalog
impl UnsafeUnpin for Catalog
impl UnwindSafe for Catalog
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