getDatabaseRowFromPage($markup); } catch (ExceptionNotExists $e) { $pageId = PageId::generateAndStorePageId($markup); $databasePage->upsertAttributes([PageId::getPersistentName() => $pageId]); } } catch (ExceptionCompile $e) { throw new ExceptionRuntimeInternal("Unable to store the page id in the database. Message:" . $e->getMessage(), self::CANONICAL, 1, $e); } } public static function delete(Path $path) { $markup = MarkupPath::createPageFromPathObject($path); try { DatabasePageRow::getOrCreateFromPageObject($markup) ->deleteIfExist(); } catch (ExceptionSqliteNotAvailable $e) { // } } }