LibWeb/IDB: Implement IDBObjectStore::clear

This commit is contained in:
stelar7 2025-05-08 10:04:53 +02:00 committed by Sam Atkins
parent 637f35c0eb
commit fa207c8fc6
Notes: github-actions[bot] 2025-05-08 13:14:20 +00:00
3 changed files with 34 additions and 1 deletions

View file

@ -53,6 +53,7 @@ public:
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> get(JS::Value);
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> open_cursor(JS::Value, Bindings::IDBCursorDirection = Bindings::IDBCursorDirection::Next);
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> delete_(JS::Value);
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> clear();
protected:
explicit IDBObjectStore(JS::Realm&, GC::Ref<ObjectStore>, GC::Ref<IDBTransaction>);