LibWeb/IDB: Implement IDBObjectStore::createIndex

This commit is contained in:
stelar7 2025-04-01 18:37:23 +02:00 committed by Andrew Kaster
commit 3367352991
Notes: github-actions[bot] 2025-04-09 17:50:46 +00:00
7 changed files with 88 additions and 14 deletions

View file

@ -31,7 +31,7 @@ public:
[[nodiscard]] static GC::Ref<Index> create(JS::Realm&, GC::Ref<ObjectStore>, String, KeyPath const&, bool, bool);
virtual ~Index();
void set_name(String name) { m_name = move(name); }
void set_name(String name);
[[nodiscard]] String name() const { return m_name; }
[[nodiscard]] bool unique() const { return m_unique; }
[[nodiscard]] bool multi_entry() const { return m_multi_entry; }