Skip to content

Conversation

mheh
Copy link

@mheh mheh commented Oct 1, 2025

Added support OR REPLACE and IF NOT EXISTS for SQLCreateTrigger through builders.

 db.create(trigger: "foo", table: "planet", when: .before, event: .insert)
    .ifNotExists()

I made the function signature public func ifNotExists(ifNotExists: Bool = true) -> Self but that's I wasn't sure whether to just set it to true or not, so I can change that if needed.

@mheh mheh requested a review from gwynne as a code owner October 1, 2025 23:55
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.

1 participant