/// Return schema of this table for specified selection columns
Return schema of this table for specified selection columns
Return schema of this table for specified selection columns
pub fn schema(&self, selection: Selection<'_>) -> Result<Schema> {
        Ok(match selection {
            Selection::All => self.table_schema.as_ref().clone(),
            Selection::Some(columns) => {
                let columns = self.table_schema.select(columns).context(SelectColumns)?;
                self.table_schema.project(&columns)
            }
        })
    }
pub fn schema ( & self , selection : Selection < ' _ > ) -> Result < Schema > { Ok ( match selection { Selection :: All => self . table_schema . as_ref ( ) . clone ( ) , Selection :: Some ( columns ) => { let columns = self . table_schema . select ( columns ) . context ( SelectColumns ) ? ; self . table_schema . project ( & columns ) } } ) }
Return schema of this table for specified selection columns
Return schema of this table for specified selection columns
&self
selection
Selection<'_>