mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
LibWeb/IDB: Implement IDBObjectStore::autoIncrement
This commit is contained in:
committed by
Jelle Raaijmakers
parent
b0453e044d
commit
2e02b62126
Notes:
github-actions[bot]
2025-03-27 15:49:18 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2e02b621266 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4077 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/gmta ✅
@@ -33,9 +33,7 @@ public:
|
||||
Optional<KeyPath> key_path() const { return m_key_path; }
|
||||
bool uses_inline_keys() const { return m_key_path.has_value(); }
|
||||
bool uses_out_of_line_keys() const { return !m_key_path.has_value(); }
|
||||
|
||||
// The autoIncrement getter steps are to return true if this’s object store has a key generator, and false otherwise.
|
||||
bool auto_increment() const { return m_key_generator.has_value(); }
|
||||
Optional<KeyGenerator> key_generator() const { return m_key_generator; }
|
||||
|
||||
private:
|
||||
ObjectStore(String name, bool auto_increment, Optional<KeyPath> const& key_path)
|
||||
|
||||
Reference in New Issue
Block a user