Packages

t

org.scalajs.dom

IDBStoreLike

trait IDBStoreLike[S] extends Object

Common members shared between IDBObjectStore and IDBIndex.

S

The type of .source

Annotations
@JSType() @native()
Linear Supertypes
Object, Any, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IDBStoreLike
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def count(query: |[IDBKey, IDBKeyRange] = js.native): IDBRequest[S, Double]
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  10. def get(key: |[IDBKey, IDBKeyRange]): IDBRequest[S, IDBValue]

    Returns an IDBRequest object, and, in a separate thread, returns the object store selected by the specified key.

    Returns an IDBRequest object, and, in a separate thread, returns the object store selected by the specified key. This is for retrieving specific records from an object store.

    Note: This method produces the same result for: a) a record that doesn't exist in the database and b) a record that has an undefined value. To tell these situations apart, call the openCursor method with the same key. That method provides a cursor if the record exists, and no cursor if it does not.

  11. def getAll(query: UndefOr[|[IDBKeyRange, IDBKey]] = js.native, count: UndefOr[Double] = js.native): IDBRequest[S, Array[IDBValue]]

    Returns an IDBRequest object containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.

    Returns an IDBRequest object containing all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.

    If a value is successfully found, then a structured clone of it is created and set as the result of the request object.

    This method produces the same result for:

    • a record that doesn't exist in the database
    • a record that has an undefined value

    To tell these situations apart, you either call

    • the openCursor method with the same key. That method provides a cursor if the record exists, and no cursor if it does not.
    • the count method with the same key, which will return 1 if the row exists and 0 if it doesn't.
  12. def getAllKeys(query: UndefOr[|[IDBKeyRange, IDBKey]] = js.native, count: UndefOr[Double] = js.native): IDBRequest[S, Array[IDBKey]]

    Returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.

    Returns an IDBRequest object retrieves record keys for all objects in the object store matching the specified parameter or all objects in the store if no parameters are given.

    If a value is successfully found, then a structured clone of it is created and set as the result of the request object.

    This method produces the same result for:

    • a record that doesn't exist in the database
    • a record that has an undefined value

    To tell these situations apart, you need to call the openCursor method with the same key. That method provides a cursor if the record exists, and no cursor if it does not.

  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def getKey(key: IDBKey): IDBRequest[S, UndefOr[IDBKey]]

    Returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query.

    Returns an IDBRequest object, and, in a separate thread, returns the key selected by the specified query. This is for retrieving specific records from an object store.

  15. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  19. def keyPath: IDBKeyPath

    The key path of this object store.

    The key path of this object store. If this attribute is null, the application must provide a key for each modification operation.

  20. def name: String
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def openCursor(range: UndefOr[|[IDBKeyRange, IDBKey]] = js.native, direction: UndefOr[IDBCursorDirection] = js.native): IDBRequest[S, IDBCursorWithValue[S]]

    The method sets the position of the cursor to the appropriate record, based on the specified direction.

    The method sets the position of the cursor to the appropriate record, based on the specified direction.

    returns

    IDBRequest with the target value being a new cursor or null.

  25. def openKeyCursor(range: UndefOr[|[IDBKeyRange, IDBKey]] = js.native, direction: UndefOr[IDBCursorDirection] = js.native): IDBRequest[S, IDBCursor[S]]

    The method sets the position of the cursor to the appropriate key, based on the specified direction.

    The method sets the position of the cursor to the appropriate key, based on the specified direction.

    returns

    IDBRequest with the target value being a new cursor or null.

  26. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toLocaleString(): String
    Definition Classes
    Object
  29. def toString(): String
    Definition Classes
    AnyRef → Any
  30. def valueOf(): Any
    Definition Classes
    Object
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped