interface PostgresV2NodeParameters {
columnToMatchOn?: string;
combineConditions?: "AND" | "OR";
dataMode?: "autoMapInputData" | "defineBelow";
deleteCommand?: "delete" | "truncate" | "drop";
limit?: number;
operation?:
| "update"
| "upsert"
| "executeQuery"
| "insert"
| "select"
| "deleteTable";
options?: {
cascade?: boolean;
connectionTimeout?: number;
delayClosingIdleConnection?: number;
largeNumbersOutput?: "text"
| "numbers";
outputColumns?: unknown[];
queryBatching?:
| "single"
| "independently"
| "transaction";
queryReplacement?: string;
replaceEmptyStrings?: boolean;
skipOnConflict?: boolean;
treatQueryParametersInSingleQuotesAsText?: boolean;
};
query?: string;
restartSequences?: boolean;
returnAll?: boolean;
schema?: { mode: "list"
| "name"; value: string };
sort?: {
values: {
column?: string;
direction?: "ASC" | "DESC";
}[];
};
table?: { mode: "list"
| "name"; value: string };
valuesToSend?: {
values: { column?: string; value?: string }[];
};
valueToMatchOn?: string;
where?: {
values: {
column?: string;
condition?: | "equal"
| "!="
| "<"
| "<="
| ">"
| ">="
| "IS NOT NULL"
| "IS NULL"
| "LIKE";
value?: string;
}[];
};
}Properties§
readonly column To Match On?: stringreadonly combine Conditions?: "AND" | "OR"How to combine the conditions defined in "Select Rows": AND requires all conditions to be true, OR requires at least one condition to be true Default: "AND"
readonly data Mode?: "autoMapInputData" | "defineBelow"Whether to map node input properties and the table data automatically or manually Default: "autoMapInputData"
readonly delete Command?: "delete" | "truncate" | "drop"Default: "truncate"
readonly limit?: numberMax number of results to return Default: 50 Type options: {"minValue":1}
readonly operation?:
| "update"
| "upsert"
| "executeQuery"
| "insert"
| "select"
| "deleteTable"Default: "insert"
readonly options?: { ... }Default: {}
readonly query?: stringThe SQL query to execute. You can use n8n expressions and $1, $2, $3, etc to refer to the 'Query Parameters' set in options below. Type options: {"editor":"sqlEditor","sqlDialect":"PostgreSQL"}
readonly restart Sequences?: booleanWhether to reset identity (auto-increment) columns to their initial values
readonly return All?: booleanWhether to return all results or only up to a given limit
readonly schema?: { ... }The schema that contains the table you want to work on Default: {"mode":"list","value":"public"}
readonly sort?: { ... }Default: {} Type options: {"multipleValues":true}
readonly table?: { ... }The table you want to work on Default: {"mode":"list","value":""}
readonly values To Send?: { ... }Default: {} Type options: {"multipleValueButtonText":"Add Value","multipleValues":true}
readonly value To Match On?: stringRows with a value in the specified "Column to Match On" that corresponds to the value in this field will be updated
readonly where?: { ... }If not set, all rows will be selected Default: {} Type options: {"multipleValues":true}
The column to compare when finding the rows to update. Choose from the list, or specify an ID using an expression. Type options: {"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}