(mode?: LockMode, tables?: string[])
| 2020 | } |
| 2021 | |
| 2022 | setLockMode(mode?: LockMode, tables?: string[]): this { |
| 2023 | this.ensureNotFinalized(); |
| 2024 | |
| 2025 | if (mode != null && ![LockMode.OPTIMISTIC, LockMode.NONE].includes(mode) && !this.context) { |
| 2026 | throw ValidationError.transactionRequired(); |
| 2027 | } |
| 2028 | |
| 2029 | this.#state.lockMode = mode; |
| 2030 | this.#state.lockTables = tables; |
| 2031 | |
| 2032 | return this; |
| 2033 | } |
| 2034 | |
| 2035 | setFlushMode(flushMode?: FlushMode): this { |
| 2036 | this.ensureNotFinalized(); |
no test coverage detected