UNPKG

node-pg-migrate

Version:

PostgreSQL database migration management tool for node.js

23 lines (22 loc) 659 B
import type { LiteralUnion, Value } from '../generalTypes'; export interface FunctionParamType { mode?: 'IN' | 'OUT' | 'INOUT' | 'VARIADIC'; name?: string; type: string; default?: Value; } export type FunctionParam = string | FunctionParamType; export interface FunctionOptions { returns?: string; language: string; replace?: boolean; window?: boolean; behavior?: 'IMMUTABLE' | 'STABLE' | 'VOLATILE'; security?: 'INVOKER' | 'DEFINER'; onNull?: boolean; parallel?: 'UNSAFE' | 'RESTRICTED' | 'SAFE'; set?: Array<{ configurationParameter: string; value: LiteralUnion<'FROM CURRENT'>; }>; }