LibWeb/IDB: Implement IDBIndex::open_cursor

This commit is contained in:
stelar7 2025-05-08 09:44:37 +02:00 committed by Sam Atkins
commit 63e1cc7b50
Notes: github-actions[bot] 2025-05-08 13:14:45 +00:00
3 changed files with 42 additions and 1 deletions

View file

@ -33,6 +33,8 @@ public:
GC::Ref<IDBTransaction> transaction() { return m_object_store_handle->transaction(); }
GC::Ref<Index> index() { return m_index; }
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> open_cursor(JS::Value, Bindings::IDBCursorDirection = Bindings::IDBCursorDirection::Next);
protected:
explicit IDBIndex(JS::Realm&, GC::Ref<Index>, GC::Ref<IDBObjectStore>);
virtual void initialize(JS::Realm&) override;