Function tinyint

Source
pub fn tinyint<S: Scalar>(
    name: impl Into<Ident>,
    data: impl IntoIterator<Item = impl Into<i8>>,
) -> (Ident, OwnedColumn<S>)
Expand description

Creates a (Ident, OwnedColumn) pair for a tinyint 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>([
    tinyint("a", [1_i8, 2, 3]),
]);