LibWeb/IDB: Implement IDBObjectStore::count

This commit is contained in:
stelar7 2025-04-28 15:52:54 +02:00 committed by Jelle Raaijmakers
commit d5cf2cee41
Notes: github-actions[bot] 2025-04-29 15:07:52 +00:00
3 changed files with 33 additions and 1 deletions

View file

@ -47,6 +47,7 @@ public:
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> add_or_put(GC::Ref<IDBObjectStore>, JS::Value, Optional<JS::Value> const&, bool);
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> add(JS::Value value, Optional<JS::Value> const& key);
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> put(JS::Value value, Optional<JS::Value> const& key);
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> count(Optional<JS::Value>);
protected:
explicit IDBObjectStore(JS::Realm&, GC::Ref<ObjectStore>, GC::Ref<IDBTransaction>);