n8n/packages/nodes-base/nodes/Postgres
agobrech 4488f93c39
feat: New trigger PostgreSQL (#5495)
* Boilerplate for PostgresTrigger

* Create trigger function as a query

* Add additional fields to customize trigger query

* Add customizable channel name && operation name

* Add concat () for function name

* Add hints and placeholders

* Add resource Locator to trigger postgres

* Add the ability for knowing trigger event

* Throw error for same function name

* Remove console.logs

* Remove schema from Chanel notifcation mode

* Add UUID and save trigger in workflow static data drop function

* Fix bug where wrongfully casted result in pgl

* Correctly drops the resources when manually executing the trigger

* Remove manual execution with special interaction

* Remove console.logs

* ♻️ Move related trigger functions to new file

* fix target using 'schema."tableName"' in quotes

To support targets with Uppercase table names

* Remove static Data and use node id for uuid

* Update deleting of the trigger and function

* Fix regex expression for channel name

* Change to drop cascade the trigger function

* Replace functions on restart if no name has been defined

* Parse payload result

* Improve handling with hyphens in names

* Remove duplicate code and clean up

* Add payload on delete

* Fix rlc

* fixing uppercase tableName

* fix multiple triggers/connections issues

* fixing rlc pgp.end() issues

* unify pgp init db method

* drop trigger only in createTrigger mode

---------

Co-authored-by: Marcus <marcus@n8n.io>
2023-06-07 11:01:57 +02:00
..
test/v2 refactor: Async functions don't need to explicitly return promises (no-changelog) (#6041) 2023-04-24 13:17:08 +02:00
v1 feat: New trigger PostgreSQL (#5495) 2023-06-07 11:01:57 +02:00
v2 ci: Fix build (no-changelog) (#6391) 2023-06-06 15:08:29 +02:00
Postgres.node.json fix(nodes-base): fix and harmonize all primaryDocumentation links (#4191) 2022-09-29 13:33:16 +03:00
Postgres.node.ts feat(editor): Implement Resource Mapper component (#6207) 2023-05-31 11:56:09 +02:00
postgres.svg Replace PNG icons with SVG and optimize (#1890) 2021-06-12 21:00:37 +02:00
PostgresInterface.ts feat: New trigger PostgreSQL (#5495) 2023-06-07 11:01:57 +02:00
PostgresTrigger.functions.ts feat: New trigger PostgreSQL (#5495) 2023-06-07 11:01:57 +02:00
PostgresTrigger.node.json feat: New trigger PostgreSQL (#5495) 2023-06-07 11:01:57 +02:00
PostgresTrigger.node.ts feat: New trigger PostgreSQL (#5495) 2023-06-07 11:01:57 +02:00