LibWeb/IDB: Add internal ObjectStore type

This commit is contained in:
stelar7
2025-03-24 20:29:33 +01:00
committed by Jelle Raaijmakers
parent 0979a154fd
commit 3c5578cc87
Notes: github-actions[bot] 2025-03-27 15:49:50 +00:00
6 changed files with 86 additions and 2 deletions

View 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);
}
}