mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb/IDB: Implement IDBDatabase::createObjectStore
This commit is contained in:
parent
3c5578cc87
commit
1057c88fdd
Notes:
github-actions[bot]
2025-03-27 15:49:41 +00:00
Author: https://github.com/stelar7
Commit: 1057c88fdd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4077
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
7 changed files with 102 additions and 10 deletions
|
@ -29,6 +29,16 @@ void Database::visit_edges(Visitor& visitor)
|
|||
visitor.visit(m_object_stores);
|
||||
}
|
||||
|
||||
bool Database::has_object_store_named(String const& name) const
|
||||
{
|
||||
for (auto const& object_store : m_object_stores) {
|
||||
if (object_store->name() == name)
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
Vector<GC::Root<Database>> Database::for_key(StorageAPI::StorageKey const& key)
|
||||
{
|
||||
Vector<GC::Root<Database>> databases;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue