Skip to main content

read_sql_table_columns_chunks

Function read_sql_table_columns_chunks 

Source
pub fn read_sql_table_columns_chunks<'conn, C: SqlConnection + 'conn>(
    conn: &'conn C,
    table_name: &str,
    columns: &[&str],
    chunk_size: usize,
) -> Result<SqlChunkIterator<'conn>, IoError>
Expand description

Read a subset of columns from a SQL table as DataFrame chunks.

Matches the supported subset of pd.read_sql_table(table, con, columns=[...], chunksize=...). The named columns are emitted in the requested order and each chunk receives a fresh zero-based RangeIndex.