Function proof_of_sql::base::database::owned_table_utility::smallint
source · pub fn smallint<S: Scalar>(
name: impl Deref<Target = str>,
data: impl IntoIterator<Item = impl Into<i16>>,
) -> (Identifier, OwnedColumn<S>)
Expand description
Creates a (Identifier, 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::*, scalar::Curve25519Scalar};
let result = owned_table::<Curve25519Scalar>([
smallint("a", [1_i16, 2, 3]),
]);