prorm API Reference
    Preparing search index...

    Function buildCreateTriggerStatements

    • Builds the statements a trigger needs. Some engines want a separate function or procedure before the trigger itself, so this returns a list rather than one statement.

      Parameters

      • trigger: TriggerDefinition
      • dialect: string
      • quoteId: (id: string) => string
      • quoteTable: (t: string) => string
      • Optionald: Dialect

        Needed only when body or when is structured rather than a string — rendering an action requires the dialect's escaping and its where builder. QueryInterface.createTrigger() always supplies it.

      Returns string[]