/** * TimescaleDB Node - Version 1 * Add and update data in TimescaleDB */ export interface TimescaleDbV1Params { operation?: 'executeQuery' | 'insert' | 'update' | Expression; /** * The SQL query to execute. You can use n8n expressions or $1 and $2 in conjunction with query parameters. * @displayOptions.show { operation: ["executeQuery"] } */ query?: string; /** * Name of the schema the table belongs to * @displayOptions.show { operation: ["insert"] } * @default public */ schema?: string | Expression | PlaceholderValue; /** * Name of the table in which to insert data to * @displayOptions.show { operation: ["insert"] } */ table?: string | Expression | PlaceholderValue; /** * Comma-separated list of the properties which should used as columns for the new rows * @displayOptions.show { operation: ["insert"] } */ columns?: string | Expression | PlaceholderValue; /** * Name of the property which decides which rows in the database should be updated. Normally that would be "id". * @displayOptions.show { operation: ["update"] } * @default id */ updateKey?: string | Expression | PlaceholderValue; /** * Comma-separated list of the fields that the operation will return * @displayOptions.show { operation: ["insert", "update"] } * @default * */ returnFields?: string | Expression | PlaceholderValue; additionalFields?: { /** The way queries should be sent to database. Can be used in conjunction with <b>Continue on Fail</b>. See <a href="https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.timescaledb/">the docs</a> for more examples * @default multiple */ mode?: 'independently' | 'multiple' | 'transaction' | Expression; /** Comma-separated list of properties which should be used as query parameters * @displayOptions.show { /operation: ["executeQuery"] } */ queryParams?: string | Expression | PlaceholderValue; }; } export interface TimescaleDbV1Credentials { timescaleDb: CredentialReference; } interface TimescaleDbV1NodeBase { type: 'n8n-nodes-base.timescaleDb'; version: 1; credentials?: TimescaleDbV1Credentials; } export type TimescaleDbV1ParamsNode = TimescaleDbV1NodeBase & { config: NodeConfig; }; export type TimescaleDbV1Node = TimescaleDbV1ParamsNode;