pub fn decimal75<S: Scalar>(
name: impl Into<Ident>,
precision: u8,
scale: i8,
data: impl IntoIterator<Item = impl Into<S>>,
) -> (Ident, OwnedColumn<S>)Expand description
Creates a (Ident, OwnedColumn) pair for a decimal75 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>([
decimal75("a", 12, 1, [1, 2, 3]),
]);§Panics
- Panics if creating the
Precisionfrom the specified precision value fails.