feat(core): Return IDs of inserted rows in Data Store (no-changelog) (#18589)

Co-authored-by: Jaakko Husso <jaakko@n8n.io>
This commit is contained in:
Charlie Kolb
2025-08-21 15:04:03 +02:00
committed by GitHub
parent 04e24e387d
commit 0db9345eba
7 changed files with 261 additions and 147 deletions

View File

@@ -73,7 +73,6 @@ export type AddDataStoreColumnOptions = Pick<DataStoreColumn, 'name' | 'type'> &
export type DataStoreColumnJsType = string | number | boolean | Date;
export type DataStoreRow = Record<string, DataStoreColumnJsType | null>;
export type DataStoreRows = DataStoreRow[];
// APIs for a data store service operating on a specific projectId
@@ -102,7 +101,7 @@ export interface IDataStoreProjectService {
dto: Partial<ListDataStoreRowsOptions>,
): Promise<{ count: number; data: DataStoreRows }>;
insertRows(rows: DataStoreRows): Promise<boolean>;
insertRows(rows: DataStoreRows): Promise<number[]>;
upsertRows(options: UpsertDataStoreRowsOptions): Promise<boolean>;
}