private _getKeyRangeForRange()

in src/IndexedDbProvider.ts [1179:1200]


  private _getKeyRangeForRange(
    keyLowRange: KeyType,
    keyHighRange: KeyType,
    lowRangeExclusive?: boolean,
    highRangeExclusive?: boolean
  ): IDBKeyRange {
    if (this._fakeComplicatedKeys && isCompoundKeyPath(this._keyPath)) {
      // IE has to switch to hacky pre-joined-compound-keys
      return IDBKeyRange.bound(
        serializeKeyToString(keyLowRange, this._keyPath),
        serializeKeyToString(keyHighRange, this._keyPath),
        lowRangeExclusive,
        highRangeExclusive
      );
    }
    return IDBKeyRange.bound(
      keyLowRange,
      keyHighRange,
      lowRangeExclusive,
      highRangeExclusive
    );
  }