mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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>
This commit is contained in:
6
packages/nodes-base/nodes/Postgres/PostgresInterface.ts
Normal file
6
packages/nodes-base/nodes/Postgres/PostgresInterface.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export interface IPostgresTrigger {
|
||||
triggerName: string;
|
||||
functionName: string;
|
||||
channelName: string;
|
||||
target: string;
|
||||
}
|
||||
Reference in New Issue
Block a user