pub struct Catalog {
pub tables: Vec<Table>,
pub functions: Vec<String>,
pub table_functions: Vec<String>,
pub types: Vec<String>,
pub schemas: Vec<String>,
pub catalogs: Vec<String>,
pub pragmas: Vec<String>,
pub settings: Vec<String>,
pub files: Vec<String>,
pub variables: Vec<String>,
}Expand description
Where a name position gets its name.
Owned strings rather than borrowed ones, because the useful catalog is the one a harness reads off a live database rather than the one written here, and the default is only what makes the tests runnable and the examples readable.
Fields§
§tables: Vec<Table>The tables, with their columns. One statement picks one of these and takes its column names
from it, so SELECT a FROM t is far likelier than SELECT a FROM u.
functions: Vec<String>§table_functions: Vec<String>§types: Vec<String>§schemas: Vec<String>§catalogs: Vec<String>§pragmas: Vec<String>§settings: Vec<String>§files: Vec<String>File names, which are the one name position where a single quoted string is what a person would write, so these carry their quotes.
variables: Vec<String>Trait Implementations§
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