Skip to content

Module: IndexedDB::IndexedDeleteRangeCompiler

Jovan Gerodetti edited this page Apr 15, 2021 · 2 revisions

IndexedDeleteRangeCompiler

exported: default
kind: object
declaration: const

the range compiler for indexedDB delete operations.

Properties

🚫 [Private.db]

Type: Promise.<IDBDatabase>
kind: value

🚫 [Private.query]

Type: IndexedQuery
kind: value

🚫 [Private.store]

Type: string
kind: value

Methods

🚫 [Private.buildKeyRange]() => {IDBKeyRange}

kind: function

Builds a IDBKeyRange from an {IndexedQuery}

constructor(storeName, db) => {IndexedDeleteRangeCompiler}

kind: function

creates a new indexed query

Name Type Description
storeName string the store to query
db Promise.<IDBDatabase> the db to query

equals(value) => {IndexedDeleteRangeCompiler}

kind: function

filters items from the result if the index doesn't match the given value.

Name Type Description
value * value to compare

from(value, [exclude=false]) => {IndexedDeleteRangeCompiler}

kind: function

starts a new value range

Name Type Description
value * range start value
[exclude=false] boolean determines if the start value will be included in the range

to(value, [exclude=false]) => {IndexedDeleteRangeCompiler}

kind: function

ends a value range

Name Type Description
value * end value of the range
[exclude=false] boolean determines if the end value will be included in the range

lowerThan(value) => {IndexedDeleteRangeCompiler}

kind: function

filters items from the result where the index is lower than the given value

Name Type Description
value *

higherThan(value) => {IndexedDeleteRangeCompiler}

kind: function

filters items from the result where the index is higher than the given value

Name Type Description
value *

commit() => {Promise}

kind: function

applies the delete operation based on the specified range

Clone this wiki locally