feat(core): Optionally return full rows from Data Table inserts (no-changelog) (#18657)

This commit is contained in:
Jaakko Husso
2025-08-25 09:50:02 +02:00
committed by GitHub
parent 802157a329
commit 2eda807b5a
9 changed files with 223 additions and 47 deletions

View File

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