Skip to content

Conversation

@bougyman
Copy link
Member

@bougyman bougyman commented Apr 1, 2025

This adds the "OR REPLACE" to the "CREATE TRIGGER" statement
by default, with an option to opt-out.

Copilot AI review requested due to automatic review settings April 1, 2025 23:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enables the creation of triggers with the "OR REPLACE" option by default, while still allowing users to opt-out.

  • Added the :replace key with a default value of true to DEFAULT_OPTS.
  • Updated the create! method to pass the new replace option to the db.create_trigger call.
  • Included a new replace method to fetch the option from the trigger options.

@bougyman bougyman merged commit abedbb2 into main Apr 2, 2025
7 checks passed
@bougyman bougyman deleted the add-replace-to-trigger branch April 2, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants