pub struct Database<'a> { /* private fields */ }Implementations§
Source§impl<'a> Database<'a>
impl<'a> Database<'a>
pub fn new(env: &'a Environment, driver: &Driver) -> MyResult<Self>
pub fn create_catalog(&self) -> MyResult<Catalog>
pub fn query_context(&self) -> Context
pub fn get_batch(&self) -> &str
pub fn create_dataset<R: Read>( &self, query: &str, ) -> MyResult<Option<Dataset<'_, R>>>
pub fn fetch_one<F: FnMut(Cow<'_, str>) -> MyResult<()>>( &self, query: &str, function: F, ) -> MyResult<()>
pub fn fetch_two<F: FnMut(Cow<'_, str>, Cow<'_, str>) -> MyResult<()>>( &self, query: &str, function: F, ) -> MyResult<()>
pub fn fetch_three<F: FnMut(Cow<'_, str>, Cow<'_, str>, Cow<'_, str>) -> MyResult<()>>( &self, query: &str, function: F, ) -> MyResult<()>
pub fn fetch_four<F: FnMut(Cow<'_, str>, Cow<'_, str>, Cow<'_, str>, Cow<'_, str>) -> MyResult<()>>( &self, query: &str, function: F, ) -> MyResult<()>
pub fn fetch_five<F: FnMut(Cow<'_, str>, Cow<'_, str>, Cow<'_, str>, Cow<'_, str>, Cow<'_, str>) -> MyResult<()>>( &self, query: &str, function: F, ) -> MyResult<()>
pub fn fetch_records<F: FnMut(Vec<Cow<'_, str>>) -> MyResult<()>>( &self, query: &str, function: F, ) -> MyResult<()>
pub fn with_catalog(self, sample: Sample) -> MyResult<Self>
pub fn with_records(self, sample: Sample) -> MyResult<Self>
Auto Trait Implementations§
impl<'a> Freeze for Database<'a>
impl<'a> !RefUnwindSafe for Database<'a>
impl<'a> !Send for Database<'a>
impl<'a> !Sync for Database<'a>
impl<'a> Unpin for Database<'a>
impl<'a> UnsafeUnpin for Database<'a>
impl<'a> !UnwindSafe for Database<'a>
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