2026-02-06 06:09:18 -05:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors
|
|
|
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
namespace OCP\DB\QueryBuilder;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Conflict resolution mode for "FOR UPDATE" select queries.
|
|
|
|
|
*
|
|
|
|
|
* @since 34.0.0
|
|
|
|
|
*/
|
|
|
|
|
enum ConflictResolutionMode {
|
|
|
|
|
/**
|
|
|
|
|
* Wait for the row to be unlocked.
|
2026-04-27 11:57:32 -04:00
|
|
|
*
|
|
|
|
|
* @since 34.0.0
|
2026-02-06 06:09:18 -05:00
|
|
|
*/
|
|
|
|
|
case Ordinary;
|
|
|
|
|
/**
|
|
|
|
|
* Skip the row if it is locked.
|
2026-04-27 11:57:32 -04:00
|
|
|
*
|
|
|
|
|
* @since 34.0.0
|
2026-02-06 06:09:18 -05:00
|
|
|
*/
|
|
|
|
|
case SkipLocked;
|
|
|
|
|
}
|