mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb/IDB: Add internal ObjectStore type
This commit is contained in:
parent
0979a154fd
commit
3c5578cc87
Notes:
github-actions[bot]
2025-03-27 15:49:50 +00:00
Author: https://github.com/stelar7
Commit: 3c5578cc87
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4077
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
6 changed files with 86 additions and 2 deletions
20
Libraries/LibWeb/IndexedDB/Internal/ObjectStore.cpp
Normal file
20
Libraries/LibWeb/IndexedDB/Internal/ObjectStore.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* Copyright (c) 2025, stelar7 <dudedbz@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/IndexedDB/Internal/ObjectStore.h>
|
||||
|
||||
namespace Web::IndexedDB {
|
||||
|
||||
GC_DEFINE_ALLOCATOR(ObjectStore);
|
||||
|
||||
ObjectStore::~ObjectStore() = default;
|
||||
|
||||
GC::Ref<ObjectStore> ObjectStore::create(JS::Realm& realm, String name, bool auto_increment, Optional<KeyPath> const& key_path)
|
||||
{
|
||||
return realm.create<ObjectStore>(name, auto_increment, key_path);
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue