str
Call Signature
Section titled “Call Signature”str():
Column<"str",false,false,false>
Defined in: src/schema/values.ts:311
A str column, indexed for equality and prefix (STARTSWITH) matching once .indexed().
Returns
Section titled “Returns”Column<"str", false, false, false>
Call Signature
Section titled “Call Signature”str(
value):StrValue
Defined in: src/schema/values.ts:325
A UTF-8 string of at most 128 bytes.
The limit is on bytes, not characters: a string of 128 emoji does not fit. Any character
is allowed, control characters included. To store raw bytes, use bytes, or hex in a
str when they must be indexed.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Throws
Section titled “Throws”If the value is not a string, holds a lone surrogate (so it has no UTF-8 encoding), or exceeds 128 UTF-8 bytes.
Example
Section titled “Example”str("Bob")