API Reference / @evolu/common / Evolu/Protocol / DbIdentifier

Variable: DbIdentifier

const DbIdentifier: BrandType<Type<"Brand", string & Brand<"Base64Url"> & Brand<"MaxLength42">, string, MaxLengthError<42>, string & Brand<"Base64Url">, 
  | StringError
  | RegexError<"Base64Url">>, "MinLength1", MinLengthError<1>, 
  | StringError
  | RegexError<"Base64Url">
| MaxLengthError<42>>;

Defined in: packages/common/src/Evolu/Protocol.ts:298

DbIdentifier is used for database (tables and columns) names. It enforces that the string length is at least 1 character and does not exceed 42.

Was this page helpful?