pub fn test_spec_to_row<'a, I>(datum_iter: I) -> Result<Row, String> where
    I: Iterator<Item = (&'a str, &'a ScalarType)>, 
Expand description

Constructs a Row from a sequence of litval and littyp.

See get_scalar_type_or_default for creating a ScalarType.

Generally, each litval can be parsed into a Datum in the manner you would imagine. Exceptions:

  • A Timestamp should be in the format "\"%Y-%m-%d %H:%M:%S%.f\"" or "\"%Y-%m-%d %H:%M:%S\""

Not all types are supported yet. Currently supported types:

  • string, bool, timestamp
  • all flavors of numeric types