Module

x/pg_mem/index.ts>FunctionDefinition

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

Properties

name: string

Function name (casing doesnt matter)

optional
args: ArgDef[] | nil

Expected arguments

optional
argsVariadic: DataType | IType | nil

Other arguments type (variadic arguments)

optional
returns: DataType | IType | nil

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