postgrelize / CreateFunctionOptions
Type Alias: CreateFunctionOptions ​
CreateFunctionOptions =
Readonly<{force?:boolean;variables?: readonlyFunctionVariable[]; }>
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);