Home | History | Annotate | Download | only in indexeddb

Lines Matching refs:keyPath

170     IDBKeyPath keyPath;
175 if (options.get("keyPath", keyPathArray))
176 keyPath = IDBKeyPath(keyPathArray);
177 else if (options.getWithUndefinedOrNullCheck("keyPath", keyPathString))
178 keyPath = IDBKeyPath(keyPathString);
183 return createObjectStore(name, keyPath, autoIncrement, es);
186 PassRefPtr<IDBObjectStore> IDBDatabase::createObjectStore(const String& name, const IDBKeyPath& keyPath, bool autoIncrement, ExceptionState& es)
208 if (!keyPath.isNull() && !keyPath.isValid()) {
209 es.throwDOMException(SyntaxError, "The keyPath option is not a valid key path.");
213 if (autoIncrement && ((keyPath.type() == IDBKeyPath::StringType && keyPath.string().isEmpty()) || keyPath.type() == IDBKeyPath::ArrayType)) {
214 es.throwDOMException(InvalidAccessError, "The autoIncrement option was set but the keyPath option was empty or an array.");
219 m_backend->createObjectStore(m_versionChangeTransaction->id(), objectStoreId, name, keyPath, autoIncrement);
221 IDBObjectStoreMetadata metadata(name, objectStoreId, keyPath, autoIncrement, IDBDatabaseBackendInterface::MinimumIndexId);