pub struct SQLProvider;Expand description
Provider for extracting content from SQL databases
Implementations§
Source§impl SQLProvider
impl SQLProvider
Trait Implementations§
Source§impl Default for SQLProvider
impl Default for SQLProvider
Source§impl SourceProvider for SQLProvider
impl SourceProvider for SQLProvider
Source§fn provider_type(&self) -> &'static str
fn provider_type(&self) -> &'static str
Provider type identifier (e.g., “file”, “github”, “url”)
Source§fn list_items<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ProviderConfig,
) -> Pin<Box<dyn Future<Output = Result<Vec<SourceItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_items<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 ProviderConfig,
) -> Pin<Box<dyn Future<Output = Result<Vec<SourceItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
List all items from source (for scanning/indexing)
Source§fn fetch_item<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SourceItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fetch_item<'life0, 'life1, 'async_trait>(
&'life0 self,
uri: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<SourceItem>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Fetch single item by URI
Auto Trait Implementations§
impl Freeze for SQLProvider
impl RefUnwindSafe for SQLProvider
impl Send for SQLProvider
impl Sync for SQLProvider
impl Unpin for SQLProvider
impl UnwindSafe for SQLProvider
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