pub fn int<S: Scalar>(
name: impl Deref<Target = str>,
data: impl IntoIterator<Item = impl Into<i32>>,
) -> (Identifier, OwnedColumn<S>)
Expand description
Creates a (Identifier, OwnedColumn)
pair for an int 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>([
int("a", [1, 2, 3]),
]);
§Panics
- Panics if
name.parse()
fails to convert the name into anIdentifier
.