mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb/IDB: Implement IDBDatabase::deleteObjectStore
This commit is contained in:
parent
b11276e5c4
commit
209d05fcb4
Notes:
github-actions[bot]
2025-03-27 15:48:47 +00:00
Author: https://github.com/stelar7
Commit: 209d05fcb4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4077
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
6 changed files with 49 additions and 7 deletions
|
@ -29,14 +29,14 @@ void Database::visit_edges(Visitor& visitor)
|
|||
visitor.visit(m_object_stores);
|
||||
}
|
||||
|
||||
bool Database::has_object_store_named(String const& name) const
|
||||
GC::Ptr<ObjectStore> Database::object_store_with_name(String const& name) const
|
||||
{
|
||||
for (auto const& object_store : m_object_stores) {
|
||||
if (object_store->name() == name)
|
||||
return true;
|
||||
return object_store;
|
||||
}
|
||||
|
||||
return false;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Vector<GC::Root<Database>> Database::for_key(StorageAPI::StorageKey const& key)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue