interface PostgresV1NodeParameters {
additionalFields?: {
largeNumbersOutput?: "text" | "numbers";
mode?: "independently" | "multiple" | "transaction";
queryParams?: string;
};
columns?: string;
operation?: "update"
| "insert"
| "executeQuery";
query?: string;
returnFields?: string;
schema?: string;
table?: string;
updateKey?: string;
}
Properties§
§
§
§
§
§
§
§
§
readonly additional Fields?: { ... }
readonly columns?: string
Comma-separated list of the properties which should used as columns for the new rows. You can use type casting with colons (:) like id:int.
readonly operation?: "update" | "insert" | "executeQuery"
Default: "insert"
readonly query?: string
The SQL query to execute. You can use n8n expressions or $1 and $2 in conjunction with query parameters. Type options: {"editor":"sqlEditor","sqlDialect":"PostgreSQL"}
readonly return Fields?: string
Comma-separated list of the fields that the operation will return Default: "*"
readonly schema?: string
Name of the schema the table belongs to Default: "public"
readonly table?: string
Name of the table in which to insert data to
readonly update Key?: string
Comma-separated list of the properties which decides which rows in the database should be updated. Normally that would be "id". Default: "id"
Default: {}