Skip to main content

values_view

Function values_view 

Source
fn values_view(
    name: &'static str,
    oid: u32,
    cols: &[(&'static str, SqlScalarType, bool)],
    keys: &[Vec<usize>],
    rows: Vec<Vec<Lit>>,
) -> BuiltinView
Expand description

Build an ontology view from a static VALUES list. Each row is a Vec<Lit>; all escaping and type-casting is handled here so callers never touch SQL string formatting directly.