pub fn borrowed_scalar<S: Scalar>( name: impl Into<Ident>, data: impl IntoIterator<Item = impl Into<S>>, alloc: &Bump, ) -> (Ident, Column<'_, S>)
Creates a (Ident, Column) pair for a scalar column. This is primarily intended for use in conjunction with table.
(Ident, Column)
table
use bumpalo::Bump; use proof_of_sql::base::{database::table_utility::*}; let alloc = Bump::new(); let result = table::<MyScalar>([ borrowed_scalar("a", [1, 2, 3], &alloc), ]);