Remote / foldkit-remote-drizzle
lockParents
function · packages/remote-drizzle/src/parentLock.ts:64
function lockParents(
tx: unknown,
table: PgTable,
idColumn: PgColumn,
parentIds: ReadonlyArray<string>,
): Promise<ReadonlyArray<string>>Lock parentIds on table in ascending id order using SELECT ... FOR UPDATE.
Returns the sorted ids that were locked.