Module

x/pg_mem/mod.ts>OperatorDefinition

An in memory postgres DB instance for your unit tests
Latest
interface OperatorDefinition
import { type OperatorDefinition } from "https://dotland.deno.dev/x/pg_mem@3.0.3/mod.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