Module

x/pg_mem/interfaces-private.ts>OperatorDefinition

An in memory postgres DB instance for your unit tests
Go to Latest
interface OperatorDefinition
import { type OperatorDefinition } from "https://dotland.deno.dev/x/pg_mem@2.6.13/interfaces-private.ts";

Properties

operator: BinaryOperator

Function name (casing doesnt matter)

left: DataType | IType

Expected left argument

right: DataType | IType

Expected right argument

optional
commutative: boolean

True if the operator is commutative (if left & right can be inverted)

returns: DataType | IType

Returned data type

optional
impure: boolean

If the function is marked as impure, it will not be simplified (ex: "select myFn(1) from myTable" will call myFn() for each row in myTable, even if it does not depend on its result)

optional
allowNullArguments: boolean

If true, the function will also be called when passing null arguments

implementation: CompiledFunction

Actual implementation of the function