Skip to content

str(value): StrValue

Defined in: src/attr/values.ts:283

A UTF-8 string of at most 128 bytes, indexed for equality and prefix (STARTSWITH) matching.

The limit is on bytes, not characters: a string of 128 emoji does not fit.

C0 control characters and DEL are rejected: the query language writes a str as str('...'), whose only escape is a doubled quote, so a control character could be stored but never queried.

string

StrValue

If the value is not a string, holds a control character, or exceeds 128 UTF-8 bytes.

str("Bob")