interface MySqlV2NodeParameters {
columnToMatchOn?: string;
combineConditions?: "AND" | "OR";
dataMode?: "autoMapInputData" | "defineBelow";
deleteCommand?: "delete" | "truncate" | "drop";
limit?: number;
operation?:
| "update"
| "upsert"
| "executeQuery"
| "insert"
| "select"
| "deleteTable";
options?: {
connectionLimit?: number;
connectionTimeoutMillis?: number;
decimalNumbers?: boolean;
detailedOutput?: boolean;
largeNumbersOutput?: "text"
| "numbers";
outputColumns?: unknown[];
priority?: "LOW_PRIORITY" | "HIGH_PRIORITY";
queryBatching?:
| "single"
| "independently"
| "transaction";
queryReplacement?: string;
replaceEmptyStrings?: boolean;
selectDistinct?: boolean;
skipOnConflict?: boolean;
};
query?: string;
returnAll?: boolean;
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§
Source§readonly combine Conditions?: "AND" | "OR"
readonly 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"
Source§readonly data Mode?: "autoMapInputData" | "defineBelow"
readonly data Mode?: "autoMapInputData" | "defineBelow"
Whether to map node input properties and the table data automatically or manually Default: "autoMapInputData"
Source§readonly limit?: number
readonly limit?: number
Max number of results to return Default: 50 Type options: {"minValue":1}
Source§readonly operation?:
| "update"
| "upsert"
| "executeQuery"
| "insert"
| "select"
| "deleteTable"
readonly operation?:
| "update"
| "upsert"
| "executeQuery"
| "insert"
| "select"
| "deleteTable"
Default: "insert"
Source§readonly options?: {
connectionLimit?: number;
connectionTimeoutMillis?: number;
decimalNumbers?: boolean;
detailedOutput?: boolean;
largeNumbersOutput?: "text" | "numbers";
outputColumns?: unknown[];
priority?: "LOW_PRIORITY" | "HIGH_PRIORITY";
queryBatching?:
| "single"
| "independently"
| "transaction";
queryReplacement?: string;
replaceEmptyStrings?: boolean;
selectDistinct?: boolean;
skipOnConflict?: boolean;
}
readonly options?: {
connectionLimit?: number;
connectionTimeoutMillis?: number;
decimalNumbers?: boolean;
detailedOutput?: boolean;
largeNumbersOutput?: "text" | "numbers";
outputColumns?: unknown[];
priority?: "LOW_PRIORITY" | "HIGH_PRIORITY";
queryBatching?:
| "single"
| "independently"
| "transaction";
queryReplacement?: string;
replaceEmptyStrings?: boolean;
selectDistinct?: boolean;
skipOnConflict?: boolean;
}
Default: {}
Source§readonly query?: string
readonly query?: string
The 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":"MySQL"}
Source§readonly sort?: {
values: {
column?: string;
direction?: "ASC" | "DESC";
}[];
}
readonly sort?: {
values: {
column?: string;
direction?: "ASC" | "DESC";
}[];
}
Default: {} Type options: {"multipleValues":true}
Source§readonly table?: { mode: "list" | "name"; value: string }
readonly table?: { mode: "list" | "name"; value: string }
The table you want to work on Default: {"mode":"list","value":""}
Source§readonly values To Send?: { values: { column?: string; value?: string }[] }
readonly values To Send?: { values: { column?: string; value?: string }[] }
Default: {} Type options: {"multipleValueButtonText":"Add Value","multipleValues":true}
Choose from the list, or specify an ID using an expression Type options: {"loadOptionsMethod":"getColumns","loadOptionsDependsOn":["schema.value","table.value"]}