mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 00:38:56 +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
|
@ -41,8 +41,12 @@ public:
|
|||
}
|
||||
|
||||
ReadonlySpan<GC::Ref<ObjectStore>> object_stores() { return m_object_stores; }
|
||||
bool has_object_store_named(String const& name) const;
|
||||
GC::Ptr<ObjectStore> object_store_with_name(String const& name) const;
|
||||
void add_object_store(GC::Ref<ObjectStore> object_store) { m_object_stores.append(object_store); }
|
||||
void remove_object_store(GC::Ref<ObjectStore> object_store)
|
||||
{
|
||||
m_object_stores.remove_first_matching([&](auto& entry) { return entry == object_store; });
|
||||
}
|
||||
|
||||
[[nodiscard]] static Vector<GC::Root<Database>> for_key(StorageAPI::StorageKey const&);
|
||||
[[nodiscard]] static Optional<GC::Root<Database> const&> for_key_and_name(StorageAPI::StorageKey&, String&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue