Skip to content

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().

Column<"str", false, false, false>

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.

string

StrValue

If the value is not a string, holds a lone surrogate (so it has no UTF-8 encoding), or exceeds 128 UTF-8 bytes.

str("Bob")