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