operation-types
operation-types is a module in @cipherstash/stack-prisma. TypeScript API reference with its signature, parameters, and usage.
operation-types
Type Aliases
QueryOperationTypes
type QueryOperationTypes<CT> = CT extends CodecTypesBase ? {
eqlEq: {
self: {
traits: V3EqualityMarker;
};
impl: (self, other) => PgBoolReturn;
};
eqlNeq: {
self: {
traits: V3EqualityMarker;
};
impl: (self, other) => PgBoolReturn;
};
eqlIn: {
self: {
traits: V3EqualityMarker;
};
impl: (self, values) => PgBoolReturn;
};
eqlNotIn: {
self: {
traits: V3EqualityMarker;
};
impl: (self, values) => PgBoolReturn;
};
eqlGt: {
self: {
traits: V3OrderAndRangeMarker;
};
impl: (self, other) => PgBoolReturn;
};
eqlGte: {
self: {
traits: V3OrderAndRangeMarker;
};
impl: (self, other) => PgBoolReturn;
};
eqlLt: {
self: {
traits: V3OrderAndRangeMarker;
};
impl: (self, other) => PgBoolReturn;
};
eqlLte: {
self: {
traits: V3OrderAndRangeMarker;
};
impl: (self, other) => PgBoolReturn;
};
eqlBetween: {
self: {
traits: V3OrderAndRangeMarker;
};
impl: (self, low, high) => PgBoolReturn;
};
eqlNotBetween: {
self: {
traits: V3OrderAndRangeMarker;
};
impl: (self, low, high) => PgBoolReturn;
};
eqlMatch: {
self: {
traits: V3FreeTextSearchMarker;
};
impl: (self, needle) => PgBoolReturn;
};
eqlJsonContains: {
self: {
traits: V3SearchableJsonMarker;
};
impl: (self, needle) => PgBoolReturn;
};
eqlJsonPathEq: {
self: {
traits: V3SearchableJsonMarker;
};
impl: (self, path, value) => PgBoolReturn;
};
eqlJsonPathNeq: {
self: {
traits: V3SearchableJsonMarker;
};
impl: (self, path, value) => PgBoolReturn;
};
eqlJsonPathGt: {
self: {
traits: V3SearchableJsonMarker;
};
impl: (self, path, value) => PgBoolReturn;
};
eqlJsonPathGte: {
self: {
traits: V3SearchableJsonMarker;
};
impl: (self, path, value) => PgBoolReturn;
};
eqlJsonPathLt: {
self: {
traits: V3SearchableJsonMarker;
};
impl: (self, path, value) => PgBoolReturn;
};
eqlJsonPathLte: {
self: {
traits: V3SearchableJsonMarker;
};
impl: (self, path, value) => PgBoolReturn;
};
} : never;Defined in: ../types/operation-types.ts:87
Flat operation signatures consumed by the SQL query builder. Read
via the queryOperations slot on the runtime context to project the
cipherstash eql* predicate methods onto cipherstash column
accessors inside model.where(...) / sql(t).where(...) callbacks.
Every operator's runtime impl (../v3/operators-v3.ts) encrypts the
user-supplied argument(s) at lowering time and stamps the column's
(table, column) routing context, then lowers to the canonical EQL
v3 function call. The comparand argument type is intentionally
permissive (unknown): the column self is the encrypted column;
the comparand is plaintext the operator encrypts on the user's
behalf.
Type Parameters
CT
CT extends CodecTypesBase