Struct SqlDataFrame

Source
pub struct SqlDataFrame { /* private fields */ }

Implementations§

Source§

impl SqlDataFrame

Source

pub async fn try_new( conn: Arc<dyn SqlConnection>, table: &str, fallback_conns: Vec<Arc<dyn SqlConnection>>, ) -> Result<Self>

Source

pub fn from_values( values: &VegaFusionTable, conn: Arc<dyn SqlConnection>, fallback_conns: Vec<Arc<dyn SqlConnection>>, ) -> Result<Arc<dyn DataFrame>>

Source

pub fn dialect(&self) -> &Dialect

Source

pub fn parent_name(&self) -> String

Source

pub fn as_query(&self) -> Query

Trait Implementations§

Source§

impl Clone for SqlDataFrame

Source§

fn clone(&self) -> SqlDataFrame

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl DataFrame for SqlDataFrame

Source§

fn as_any(&self) -> &dyn Any

Source§

fn schema(&self) -> Schema

Source§

fn connection(&self) -> Arc<dyn Connection>

Source§

fn fingerprint(&self) -> u64

Source§

fn collect<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<VegaFusionTable>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn sort<'life0, 'async_trait>( &'life0 self, exprs: Vec<Expr>, limit: Option<i32>, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn select<'life0, 'async_trait>( &'life0 self, exprs: Vec<Expr>, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn aggregate<'life0, 'async_trait>( &'life0 self, group_exprs: Vec<Expr>, aggr_exprs: Vec<Expr>, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn joinaggregate<'life0, 'async_trait>( &'life0 self, group_expr: Vec<Expr>, aggr_expr: Vec<Expr>, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn filter<'life0, 'async_trait>( &'life0 self, predicate: Expr, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn limit<'life0, 'async_trait>( &'life0 self, limit: i32, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn fold<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, fields: &'life1 [String], value_col: &'life2 str, key_col: &'life3 str, order_field: Option<&'life4 str>, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source§

fn stack<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, field: &'life1 str, orderby: Vec<Expr>, groupby: &'life2 [String], start_field: &'life3 str, stop_field: &'life4 str, mode: StackMode, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source§

fn impute<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>( &'life0 self, field: &'life1 str, value: ScalarValue, key: &'life2 str, groupby: &'life3 [String], order_field: Option<&'life4 str>, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait,

Source§

fn schema_df(&self) -> Result<DFSchema, VegaFusionError>

Source§

fn collect_flat<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<RecordBatch, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Source§

fn with_index<'life0, 'life1, 'async_trait>( &'life0 self, index_name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Arc<dyn DataFrame>, VegaFusionError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.