mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
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:
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user