Skip to main content

read_sql_query_chunks

Function read_sql_query_chunks 

Source
pub fn read_sql_query_chunks<'conn, C: SqlConnection + 'conn>(
    conn: &'conn C,
    query: &str,
    chunk_size: usize,
) -> Result<SqlChunkIterator<'conn>, IoError>
Expand description

Read the result of a SQL query as an iterator of DataFrame chunks.

Matches the supported subset of pd.read_sql_query(sql, con, chunksize=...).