mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
feat(Data Table Node): Add Update, Upsert operations (no-changelog) (#18820)
This commit is contained in:
@@ -57,6 +57,11 @@ export type ListDataStoreRowsOptions = {
|
||||
skip?: number;
|
||||
};
|
||||
|
||||
export type UpdateDataStoreRowsOptions = {
|
||||
filter: Record<string, DataStoreColumnJsType>;
|
||||
data: DataStoreRow;
|
||||
};
|
||||
|
||||
export type UpsertDataStoreRowsOptions = {
|
||||
rows: DataStoreRows;
|
||||
matchFields: string[];
|
||||
@@ -113,6 +118,8 @@ export interface IDataStoreProjectService {
|
||||
|
||||
insertRows(rows: DataStoreRows): Promise<DataStoreRowReturn[]>;
|
||||
|
||||
updateRows(options: UpdateDataStoreRowsOptions): Promise<DataStoreRowReturn[]>;
|
||||
|
||||
upsertRows(options: UpsertDataStoreRowsOptions): Promise<DataStoreRowReturn[]>;
|
||||
|
||||
deleteRows(ids: number[]): Promise<boolean>;
|
||||
|
||||
Reference in New Issue
Block a user