Example #1
0
DOMStringList* IDBDatabase::objectStoreNames() const {
  DOMStringList* objectStoreNames =
      DOMStringList::create(DOMStringList::IndexedDB);
  for (const auto& it : m_metadata.objectStores)
    objectStoreNames->append(it.value->name);
  objectStoreNames->sort();
  return objectStoreNames;
}
Example #2
0
DOMStringList* IDBObjectStore::indexNames() const
{
    IDB_TRACE("IDBObjectStore::indexNames");
    DOMStringList* indexNames = DOMStringList::create(DOMStringList::IndexedDB);
    for (const auto& it : m_metadata.indexes)
        indexNames->append(it.value.name);
    indexNames->sort();
    return indexNames;
}
Example #3
0
DOMStringList* IDBTransaction::objectStoreNames() const {
  if (isVersionChange())
    return m_database->objectStoreNames();

  DOMStringList* objectStoreNames =
      DOMStringList::create(DOMStringList::IndexedDB);
  for (const String& objectStoreName : m_scope)
    objectStoreNames->append(objectStoreName);
  objectStoreNames->sort();
  return objectStoreNames;
}