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