automatically ignore known forwarded addresses, fixes #64
This commit is contained in:
10
vendor/go.mau.fi/util/dbutil/samples/output/01-sqlite3.sql
vendored
Normal file
10
vendor/go.mau.fi/util/dbutil/samples/output/01-sqlite3.sql
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
CREATE TABLE foo (
|
||||
key INTEGER PRIMARY KEY,
|
||||
|
||||
data JSONB NOT NULL
|
||||
);
|
||||
|
||||
CREATE TRIGGER test AFTER INSERT ON foo WHEN NEW.data->>'action' = 'delete' BEGIN
|
||||
DELETE FROM test WHERE key <= NEW.data->>'index';
|
||||
END;
|
||||
-- end only sqlite
|
||||
Reference in New Issue
Block a user