l10n->t('Database transaction isolation level'); } public function getCategory(): string { return 'database'; } public function run(): SetupResult { try { if ($this->connection->getDatabaseProvider() === IDBConnection::PLATFORM_SQLITE) { return SetupResult::success(); } if ($this->db->getTransactionIsolation() === TransactionIsolationLevel::READ_COMMITTED) { return SetupResult::success('Read committed'); } else { return SetupResult::error( $this->l10n->t('Your database does not run with "READ COMMITTED" transaction isolation level. This can cause problems when multiple actions are executed in parallel.'), $this->urlGenerator->linkToDocs('admin-db-transaction') ); } } catch (Exception $e) { return SetupResult::warning( $this->l10n->t('Was not able to get transaction isolation level: %s', $e->getMessage()) ); } } }