Shaka Player Embedded
|
#include <object_store.h>
Public Member Functions | |
IDBObjectStore (RefPtr< IDBTransaction > transaction, const std::string &name) | |
void | Trace (memory::HeapTracer *tracer) const override |
ExceptionOr< RefPtr< IDBRequest > > | Add (Any value, optional< IdbKeyType > key) |
ExceptionOr< RefPtr< IDBRequest > > | Put (Any value, optional< IdbKeyType > key) |
ExceptionOr< RefPtr< IDBRequest > > | Delete (IdbKeyType key) |
ExceptionOr< RefPtr< IDBRequest > > | Get (IdbKeyType key) |
ExceptionOr< RefPtr< IDBRequest > > | OpenCursor (optional< IdbKeyType > range, optional< IDBCursorDirection > direction) |
ExceptionOr< RefPtr< IDBRequest > > | AddOrPut (Any value, optional< IdbKeyType > key, bool no_overwrite) |
![]() | |
BackingObject () | |
void | Trace (memory::HeapTracer *tracer) const override |
bool | IsRootedAlive () const override |
std::string | name () const |
virtual BackingObjectFactoryBase * | factory () const =0 |
bool | DerivedFrom (const std::string &base) |
ReturnVal< JsValue > | JsThis () const |
void | SetJsThis (Handle< JsObject > this_) |
![]() | |
virtual | ~Traceable () |
virtual bool | IsShortLived () const |
Public Attributes | |
const bool | auto_increment = true |
const optional< std::string > | key_path |
const std::string | store_name |
const Member< IDBTransaction > | transaction |
Additional Inherited Members | |
![]() | |
static void * | operator new[] (size_t size)=delete |
static void | operator delete[] (void *)=delete |
![]() | |
static constexpr const size_t | kInternalFieldCount = 2 |
![]() | |
static constexpr const uint64_t | kShortLiveDurationMs = 5000 |
![]() | |
~BackingObject () override | |
Definition at line 37 of file object_store.h.
shaka::js::idb::IDBObjectStore::IDBObjectStore | ( | RefPtr< IDBTransaction > | transaction, |
const std::string & | name | ||
) |
Definition at line 31 of file object_store.cc.
ExceptionOr< RefPtr< IDBRequest > > shaka::js::idb::IDBObjectStore::Add | ( | Any | value, |
optional< IdbKeyType > | key | ||
) |
Definition at line 43 of file object_store.cc.
ExceptionOr< RefPtr< IDBRequest > > shaka::js::idb::IDBObjectStore::AddOrPut | ( | Any | value, |
optional< IdbKeyType > | key, | ||
bool | no_overwrite | ||
) |
Definition at line 53 of file object_store.cc.
ExceptionOr< RefPtr< IDBRequest > > shaka::js::idb::IDBObjectStore::Delete | ( | IdbKeyType | key | ) |
Definition at line 84 of file object_store.cc.
ExceptionOr< RefPtr< IDBRequest > > shaka::js::idb::IDBObjectStore::Get | ( | IdbKeyType | key | ) |
Definition at line 97 of file object_store.cc.
ExceptionOr< RefPtr< IDBRequest > > shaka::js::idb::IDBObjectStore::OpenCursor | ( | optional< IdbKeyType > | range, |
optional< IDBCursorDirection > | direction | ||
) |
Definition at line 111 of file object_store.cc.
ExceptionOr< RefPtr< IDBRequest > > shaka::js::idb::IDBObjectStore::Put | ( | Any | value, |
optional< IdbKeyType > | key | ||
) |
Definition at line 48 of file object_store.cc.
|
overridevirtual |
Called during a GC run. This should call HeapTracer::Trace on all Traceable members. Be sure to call the base method when overriding.
Implements shaka::memory::Traceable.
Definition at line 38 of file object_store.cc.
const bool shaka::js::idb::IDBObjectStore::auto_increment = true |
Definition at line 45 of file object_store.h.
const optional<std::string> shaka::js::idb::IDBObjectStore::key_path |
Definition at line 46 of file object_store.h.
const std::string shaka::js::idb::IDBObjectStore::store_name |
Definition at line 47 of file object_store.h.
const Member<IDBTransaction> shaka::js::idb::IDBObjectStore::transaction |
Definition at line 48 of file object_store.h.