mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibWeb/IDB: Implement IDBObjectStore::add_or_put
This commit is contained in:
parent
fb17dae42b
commit
a06cec7a3c
Notes:
github-actions[bot]
2025-04-23 18:37:02 +00:00
Author: https://github.com/stelar7
Commit: a06cec7a3c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4317
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/kennethmyhra ✅
3 changed files with 99 additions and 21 deletions
|
@ -44,6 +44,8 @@ public:
|
|||
WebIDL::ExceptionOr<GC::Ref<IDBIndex>> index(String const&);
|
||||
WebIDL::ExceptionOr<void> delete_index(String const&);
|
||||
|
||||
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> add_or_put(GC::Ref<IDBObjectStore>, JS::Value, Optional<JS::Value> const&, bool);
|
||||
|
||||
protected:
|
||||
explicit IDBObjectStore(JS::Realm&, GC::Ref<ObjectStore>, GC::Ref<IDBTransaction>);
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue