i32
Call Signature
Section titled “Call Signature”i32():
Column<"i32",false,false,false>
Defined in: src/schema/values.ts:87
An i32 column, indexed for equality and range queries once .indexed().
Returns
Section titled “Returns”Column<"i32", false, false, false>
Call Signature
Section titled “Call Signature”i32(
value):I32Value
Defined in: src/schema/values.ts:99
A 32-bit signed integer. This is the default type for a bare number, so { level: 10 } and
{ level: i32(10) } are the same value.
Parameters
Section titled “Parameters”An integer in [-2147483648, 2147483647].
number | bigint
Returns
Section titled “Returns”Throws
Section titled “Throws”If the value is not an integer, or does not fit an i32.
Example
Section titled “Example”i32(10) // { type: "i32", value: 10 }i32(-42) // negative values are fine — i32 is the signed integer