fix(Postgres Node): Allow users to wrap strings with $$ (#12034)

This commit is contained in:
Dana
2024-12-16 18:02:48 +01:00
committed by GitHub
parent a5e01cfa23
commit 0c15e30778
3 changed files with 55 additions and 6 deletions

View File

@@ -1,12 +1,13 @@
import type { IDataObject, INodeExecutionData, SSHCredentials } from 'n8n-workflow';
import type pgPromise from 'pg-promise';
import { type IFormattingOptions } from 'pg-promise';
import type pg from 'pg-promise/typescript/pg-subset';
export type QueryMode = 'single' | 'transaction' | 'independently';
export type QueryValue = string | number | IDataObject | string[];
export type QueryValues = QueryValue[];
export type QueryWithValues = { query: string; values?: QueryValues };
export type QueryWithValues = { query: string; values?: QueryValues; options?: IFormattingOptions };
export type WhereClause = { column: string; condition: string; value: string | number };
export type SortRule = { column: string; direction: string };