Skip to content

Commit

Permalink
Reword upsertMultiDimDataPage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyi committed Nov 1, 2024
1 parent 740dc61 commit 95eeaf3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion db/model/MultiDimDataPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import {
DbEnrichedMultiDimDataPage,
} from "@ourworldindata/types"

/** Returns ID of the upserted row or zero, if there are no updates. */
/**
* Returns zero if none of the inserted columns differs from the existing ones,
* ID of the upserted row otherwise.
*/
export async function upsertMultiDimDataPage(
knex: KnexReadWriteTransaction,
data: DbInsertMultiDimDataPage
Expand Down

0 comments on commit 95eeaf3

Please sign in to comment.