LibWeb/IDB: Implement IDBTransaction::objectStore

This commit is contained in:
stelar7 2025-04-09 23:24:44 +02:00 committed by Andrew Kaster
commit fc06d088c3
Notes: github-actions[bot] 2025-04-11 01:13:48 +00:00
3 changed files with 33 additions and 1 deletions

View file

@ -59,8 +59,11 @@ public:
[[nodiscard]] bool is_readwrite() const { return m_mode == Bindings::IDBTransactionMode::Readwrite; }
[[nodiscard]] bool is_finished() const { return m_state == TransactionState::Finished; }
GC::Ptr<ObjectStore> object_store_named(String const& name) const;
WebIDL::ExceptionOr<void> abort();
WebIDL::ExceptionOr<void> commit();
WebIDL::ExceptionOr<GC::Ref<IDBObjectStore>> object_store(String const& name);
void set_onabort(WebIDL::CallbackType*);
WebIDL::CallbackType* onabort();