sqlformat-rs
sqlformat-rs copied to clipboard
REFERENCES xyz ON UPDATE .. causes formatter to treat the remaining as an UPDATE statement
CREATE TABLE a (b integer references c (id) on update restrict, other integer)
results in
CREATE TABLE a (
b integer REFERENCES c (id) ON
UPDATE
RESTRICT,
other integer
);