We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1d38638 commit 2a9a404Copy full SHA for 2a9a404
1 file changed
test/postgresql.test.ts
@@ -260,14 +260,14 @@ describe('PostgreSqlFormatter', () => {
260
it('formats keywords in CREATE CONSTRAINT TRIGGER', () => {
261
expect(
262
format(
263
- `CREATE CONSTRAINT TRIGGER example_trigger
264
- AFTER INSERT
265
- OR
266
- UPDATE OF column_a,
267
- column_b ON example_table
268
- DEFERRABLE INITIALLY DEFERRED FOR EACH ROW
269
- EXECUTE PROCEDURE example_function ();`,
270
- { keywordCase: 'upper' }
+ `create constraint trigger Example_Trigger
+ after insert
+ or
+ update of Column_A,
+ Column_B on Example_Table
+ deferrable initially deferred for each row
+ execute procedure Example_Function ();`,
+ { keywordCase: 'upper', identifierCase: 'lower' }
271
)
272
).toBe(dedent`
273
CREATE CONSTRAINT TRIGGER example_trigger
0 commit comments