-
|
Hi, I'm trying to create a trigger using sqlite, which requires a semi-colon to be after each statement between BEGIN and END. Is there a way to do this with the DSL? (emacsql nil
[:create-trigger
trigger_name
:after :insert :on foo
:begin
:update
events
:set (= bar 1)
:end])which gives the SQL: CREATE TRIGGER trigger_name AFTER INSERT ON foo
BEGIN
UPDATE events
SET bar = 1 -- <-- need semi-colon here
END;Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
trevarj
Jul 5, 2025
Replies: 1 comment
-
|
Turns out you can do this: (emacsql nil
[:create-trigger
trigger_name
:after :insert :on foo
:begin
:update
events
:set (= bar 1)
:\;
:end]) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
trevarj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turns out you can do this: