Index

src/types.ts

ComparisonOperator

Defines comparison operators for query conditions. Supported operators include equality, inequality, greater than, greater than or equal to, less than, less than or equal to, inclusion in a set, exclusion from a set, custom comparisons, and regex matching.

"$eq" | "$neq" | "$gt" | "$gte" | "$lt" | "$lte" | "$in" | "$nin" | "custom" | "$regex"
ConditionNode

Defines a node structure for logical conditions. Nodes can be composed of AND/OR logic or simple conditions.

literal type | literal type | SimpleCondition<T>
DocumentWithId

Represents a document with an associated unique identifier. The document type is extended with an id of type MEMOZID and can include additional properties.

EvictionStrategy
"LRU" | "FIFO"
MEMOZID

Represents a unique identifier for a MEMOZ object. This type can be enhanced with stricter typing rules if desired.

RegexCondition

Represents a condition using a regular expression. The condition includes a regex pattern and optional flags.

literal type
RegexOptions

Defines valid regex options for regex operations. Supported options include:

  • 'i': Case-insensitive matching
  • 'g': Global search
  • 'm': Multiline mode
  • 's': Dot all (dot matches newline)
  • 'u': Unicode matching
  • 'y': Sticky matching
"i" | "g" | "m" | "s" | "u" | "y"
UpdateManyResult

Represents the result of an update operation affecting multiple documents. It includes a success flag, the number of documents updated, and the documents themselves.

literal type
ValueTypes

Defines the valid types that can be used as values in conditions. This includes primitive types, arrays, objects, and RegexCondition.

string | number | boolean | Date | any[] | object | RegexCondition | Record<string | any>

results matching ""

    No results matching ""