IDBKeyRange

Overview

A key range can be a single value or a range with upper and lower bounds or endpoints. If the key range has both upper and lower bounds, then it is bounded; if it has no bounds, it is unbounded. A bounded key range can either be open (the endpoints are excluded) or closed (the endpoints are included). To retrieve all keys within a certain range, you can use the following code constructs:

Location

 

bound

Creates a new key range with upper and lower bounds.

 

method bound(parlower: dynamic; parupper: dynamic; parlowerOpen: dynamic; parupperOpen: dynamic): IDBKeyRange

 

IDBKeyRange bound(dynamic parlower, dynamic parupper, dynamic parlowerOpen, dynamic parupperOpen)

 

func bound(_ parlower: dynamic, _ parupper: dynamic, _ parlowerOpen: dynamic, _ parupperOpen: dynamic) -> IDBKeyRange

 

IDBKeyRange bound(dynamic parlower, dynamic parupper, dynamic parlowerOpen, dynamic parupperOpen)

 

Function bound(parlower As dynamic, parupper As dynamic, parlowerOpen As dynamic, parupperOpen As dynamic) As IDBKeyRange

Parameters:

  • parlower:
  • parupper:
  • parlowerOpen:
  • parupperOpen:

includes

Returns a boolean indicating whether a specified key is inside the key range.

 

method includes: Boolean

 

Boolean includes()

 

func includes() -> Boolean

 

Boolean includes()

 

Function includes() As Boolean

lower

 

property lower: Int32 read;

 

Int32 lower { get; }

 

var lower: Int32 { get{} }

 

Int32 lower { __get; }

 

ReadOnly Property lower() As Int32

lowerBound

Creates a new key range with only a lower bound.

 

method lowerBound(parlower: dynamic; paropen: dynamic): IDBKeyRange

 

IDBKeyRange lowerBound(dynamic parlower, dynamic paropen)

 

func lowerBound(_ parlower: dynamic, _ paropen: dynamic) -> IDBKeyRange

 

IDBKeyRange lowerBound(dynamic parlower, dynamic paropen)

 

Function lowerBound(parlower As dynamic, paropen As dynamic) As IDBKeyRange

Parameters:

  • parlower:
  • paropen:

lowerOpen

 

property lowerOpen: Boolean read;

 

Boolean lowerOpen { get; }

 

var lowerOpen: Boolean { get{} }

 

Boolean lowerOpen { __get; }

 

ReadOnly Property lowerOpen() As Boolean

only

Creates a new key range containing a single value.

 

method only: dynamic

 

dynamic only()

 

func only() -> dynamic

 

dynamic only()

 

Function only() As dynamic

upper

 

property upper: Int32 read;

 

Int32 upper { get; }

 

var upper: Int32 { get{} }

 

Int32 upper { __get; }

 

ReadOnly Property upper() As Int32

upperBound

Creates a new upper-bound key range.

 

method upperBound: Int32

 

Int32 upperBound()

 

func upperBound() -> Int32

 

Int32 upperBound()

 

Function upperBound() As Int32

upperOpen

 

property upperOpen: Boolean read;

 

Boolean upperOpen { get; }

 

var upperOpen: Boolean { get{} }

 

Boolean upperOpen { __get; }

 

ReadOnly Property upperOpen() As Boolean

 

lower

 

property lower: Int32 read;

 

Int32 lower { get; }

 

var lower: Int32 { get{} }

 

Int32 lower { __get; }

 

ReadOnly Property lower() As Int32

lowerOpen

 

property lowerOpen: Boolean read;

 

Boolean lowerOpen { get; }

 

var lowerOpen: Boolean { get{} }

 

Boolean lowerOpen { __get; }

 

ReadOnly Property lowerOpen() As Boolean

upper

 

property upper: Int32 read;

 

Int32 upper { get; }

 

var upper: Int32 { get{} }

 

Int32 upper { __get; }

 

ReadOnly Property upper() As Int32

upperOpen

 

property upperOpen: Boolean read;

 

Boolean upperOpen { get; }

 

var upperOpen: Boolean { get{} }

 

Boolean upperOpen { __get; }

 

ReadOnly Property upperOpen() As Boolean

 

bound

Creates a new key range with upper and lower bounds.

 

method bound(parlower: dynamic; parupper: dynamic; parlowerOpen: dynamic; parupperOpen: dynamic): IDBKeyRange

 

IDBKeyRange bound(dynamic parlower, dynamic parupper, dynamic parlowerOpen, dynamic parupperOpen)

 

func bound(_ parlower: dynamic, _ parupper: dynamic, _ parlowerOpen: dynamic, _ parupperOpen: dynamic) -> IDBKeyRange

 

IDBKeyRange bound(dynamic parlower, dynamic parupper, dynamic parlowerOpen, dynamic parupperOpen)

 

Function bound(parlower As dynamic, parupper As dynamic, parlowerOpen As dynamic, parupperOpen As dynamic) As IDBKeyRange

Parameters:

  • parlower:
  • parupper:
  • parlowerOpen:
  • parupperOpen:

includes

Returns a boolean indicating whether a specified key is inside the key range.

 

method includes: Boolean

 

Boolean includes()

 

func includes() -> Boolean

 

Boolean includes()

 

Function includes() As Boolean

lowerBound

Creates a new key range with only a lower bound.

 

method lowerBound(parlower: dynamic; paropen: dynamic): IDBKeyRange

 

IDBKeyRange lowerBound(dynamic parlower, dynamic paropen)

 

func lowerBound(_ parlower: dynamic, _ paropen: dynamic) -> IDBKeyRange

 

IDBKeyRange lowerBound(dynamic parlower, dynamic paropen)

 

Function lowerBound(parlower As dynamic, paropen As dynamic) As IDBKeyRange

Parameters:

  • parlower:
  • paropen:

only

Creates a new key range containing a single value.

 

method only: dynamic

 

dynamic only()

 

func only() -> dynamic

 

dynamic only()

 

Function only() As dynamic

upperBound

Creates a new upper-bound key range.

 

method upperBound: Int32

 

Int32 upperBound()

 

func upperBound() -> Int32

 

Int32 upperBound()

 

Function upperBound() As Int32