Function df_from_sl3_type

Source
pub fn df_from_sl3_type<F>(
    dbn: &str,
    n: &Vec<&str>,
    t: &Vec<DataType>,
    qry: &str,
    p: &[(&str, Value)],
    f: F,
) -> Result<DataFrame, Box<dyn Error>>
where F: for<'a> FnMut(&'a Row) -> Vec<AnyValue<'_>>,
Expand description

create DataFrame from sl3 with column names and DataTypes

  • n: &Vec<&str>
  • t: &Vec<DataType>
  • p: &[(&str, sqlite::Value)]
  • f: FnMut(&‘a sqlite::Row) -> Vec<AnyValue<’_>>
  • df_from_sl3_type(“db.sl3”, n, t, “select * from tbl;”, p, f).expect(“df”)