Skip to content

postgrelize / CreateFunctionOptions

Type Alias: CreateFunctionOptions ​

CreateFunctionOptions = Readonly<{ force?: boolean; variables?: readonly FunctionVariable[]; }>

Defined in: src/ddl/function-ddl.ts:50

Options of createFunction.

Example ​

ts
const options: CreateFunctionOptions = {
  force: true,
  variables: [{ name: 'limit_rows', type: 'integer', default: 100 }],
};
await queryInterface.createFunction('f', [], 'integer', 'plpgsql', 'RETURN limit_rows;', [], options);

Released under the MIT License.