mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 19:47:17 +02:00
LibWeb/IDB: Add internal ObjectStore type
This commit is contained in:
committed by
Jelle Raaijmakers
parent
0979a154fd
commit
3c5578cc87
Notes:
github-actions[bot]
2025-03-27 15:49:50 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/3c5578cc874 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4077 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/gmta ✅
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user