pub struct MemoryHandler { /* private fields */ }Expand description
MemoryHandler keeps a flat row vector keyed on ForeignTable::name.
scan projects, filters, and limits in pure Rust — handy for tests
and as a baseline reference for richer backends.
Implementations§
Trait Implementations§
Source§impl Debug for MemoryHandler
impl Debug for MemoryHandler
Source§impl Default for MemoryHandler
impl Default for MemoryHandler
Source§impl FDWHandler for MemoryHandler
impl FDWHandler for MemoryHandler
fn scan( &self, table: &ForeignTable, columns: Option<&[String]>, predicates: &[FDWPredicate], limit: Option<u64>, ) -> Result<Vec<Row>, FDWError>
Source§fn scan_stream(
&self,
table: &ForeignTable,
columns: Option<&[String]>,
predicates: &[FDWPredicate],
limit: Option<u64>,
) -> Result<RowStream, FDWError>
fn scan_stream( &self, table: &ForeignTable, columns: Option<&[String]>, predicates: &[FDWPredicate], limit: Option<u64>, ) -> Result<RowStream, FDWError>
Pull-based scan ABI. Existing wrappers inherit the vector adapter;
wrappers capable of cursor/batch reads can override this method and
avoid a cardinality-sized intermediate allocation.
fn close(&self)
Auto Trait Implementations§
impl Freeze for MemoryHandler
impl RefUnwindSafe for MemoryHandler
impl Send for MemoryHandler
impl Sync for MemoryHandler
impl Unpin for MemoryHandler
impl UnsafeUnpin for MemoryHandler
impl UnwindSafe for MemoryHandler
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