/** * Microsoft SQL Node - Version 1.1 * Get, add and update data in Microsoft SQL */ export interface MicrosoftSqlV11Params { operation?: 'executeQuery' | 'insert' | 'update' | 'delete'; /** * 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. * @hint Consider using query parameters to prevent SQL injection attacks. Add them in the options below * @displayOptions.show { operation: ["executeQuery"] } */ query?: string; /** * Options * @displayOptions.show { operation: ["executeQuery"] } * @default {} */ options?: { /** Comma-separated list of values to use as query parameters. Reference them in the query as $1, $2, $3, etc. You can drag values from the input panel on the left. * @hint Comma-separated list of values: reference them in your query as $1, $2, $3… */ queryReplacement?: string | Expression | PlaceholderValue; }; /** * Name of the table in which to insert data to * @displayOptions.show { operation: ["insert", "update", "delete"] } */ table?: string | Expression | PlaceholderValue; /** * Comma-separated list of the properties which should used as columns for the new rows * @displayOptions.show { operation: ["insert", "update"] } */ 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; /** * Name of the property which decides which rows in the database should be deleted. Normally that would be "id". * @displayOptions.show { operation: ["delete"] } * @default id */ deleteKey?: string | Expression | PlaceholderValue; } export interface MicrosoftSqlV11Credentials { microsoftSql: CredentialReference; } interface MicrosoftSqlV11NodeBase { type: 'n8n-nodes-base.microsoftSql'; version: 1.1; credentials?: MicrosoftSqlV11Credentials; } export type MicrosoftSqlV11ParamsNode = MicrosoftSqlV11NodeBase & { config: NodeConfig; }; export type MicrosoftSqlV11Node = MicrosoftSqlV11ParamsNode;