Skip to main content

Module db_string

Module db_string 

Source
Expand description

Engine-owned database strings backed by shared string storage.

DbString is an owned string newtype used for GQL string values, graph labels, property keys, aliases, and procedure-name segments. Cloning a DbString shares the same allocation, but construction never consults a process-global string pool. There is no interning table, specialized small-string storage, or distinct-string cardinality cap: db_string simply constructs an owned DbString after enforcing the per-string byte cap (IL013).

The only construction guard is the IL013 per-string byte limit (MAX_DB_STRING_BYTES); a string at or below it constructs an DbString, a longer one raises CoreError::StringTooLong (GQLSTATUS 22G03).

Structs§

DbString
Owned database string.

Constants§

MAX_DB_STRING_BYTES
Maximum byte length of a single database string.

Functions§

db_string
Construct an owned DbString from a string slice.