pub struct OpenDalTable { /* private fields */ }Expand description
Virtual table for cloud storage backends
This is a generic implementation that can work with any storage backend. Configuration is passed through hidden columns in SQL queries.
Trait Implementations§
Source§impl CreateVTab<'_> for OpenDalTable
impl CreateVTab<'_> for OpenDalTable
Source§const KIND: VTabKind = VTabKind::EponymousOnly
const KIND: VTabKind = VTabKind::EponymousOnly
Virtual table kind (eponymous means no CREATE VIRTUAL TABLE needed)
Source§fn create(
db: &mut VTabConnection,
aux: Option<&Self::Aux>,
args: &[&[u8]],
) -> Result<(String, Self), Error>
fn create( db: &mut VTabConnection, aux: Option<&Self::Aux>, args: &[&[u8]], ) -> Result<(String, Self), Error>
Create a new instance of a virtual table in response to a CREATE VIRTUAL
TABLE statement. The
db parameter is a pointer to the SQLite
database connection that is executing the CREATE VIRTUAL TABLE
statement. Read moreSource§impl VTab<'_> for OpenDalTable
impl VTab<'_> for OpenDalTable
Source§fn connect(
_db: &mut VTabConnection,
_aux: Option<&Self::Aux>,
_args: &[&[u8]],
) -> Result<(String, Self)>
fn connect( _db: &mut VTabConnection, _aux: Option<&Self::Aux>, _args: &[&[u8]], ) -> Result<(String, Self)>
Connect to the virtual table
This defines the table schema that SQLite will use.
Source§fn best_index(&self, info: &mut IndexInfo) -> Result<()>
fn best_index(&self, info: &mut IndexInfo) -> Result<()>
Determine the best index strategy for a query
This tells SQLite how to optimize the query.
Source§type Aux = ()
type Aux = ()
Client data passed to
Connection::create_module.Source§type Cursor = OpenDalCursor
type Cursor = OpenDalCursor
Specific cursor implementation
Auto Trait Implementations§
impl Freeze for OpenDalTable
impl RefUnwindSafe for OpenDalTable
impl !Send for OpenDalTable
impl !Sync for OpenDalTable
impl Unpin for OpenDalTable
impl UnsafeUnpin for OpenDalTable
impl UnwindSafe for OpenDalTable
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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