LibWeb/IDB: Implement IDBFactory::databases()

This commit is contained in:
stelar7 2025-03-13 10:10:49 +01:00 committed by Jelle Raaijmakers
commit 664c57af16
Notes: github-actions[bot] 2025-03-14 07:55:38 +00:00
5 changed files with 75 additions and 5 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2024, stelar7 <dudedbz@gmail.com>
* Copyright (c) 2024-2025, stelar7 <dudedbz@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -39,6 +39,7 @@ public:
return connections;
}
[[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&);
[[nodiscard]] static ErrorOr<GC::Root<Database>> create_for_key_and_name(JS::Realm&, StorageAPI::StorageKey&, String&);
[[nodiscard]] static ErrorOr<void> delete_for_key_and_name(StorageAPI::StorageKey&, String&);