* Whether the collection orders strings using locale collation. * * Under `stringSort: 'locale'` a BTree string index orders values with * `localeCompare`, but the WHERE evaluator compares strings with JS relational * operators (code-point order). For range predicates these orders disagree * (e
(collection: CollectionLike<any, any>)
| 131 | * not be index-optimized. |
| 132 | */ |
| 133 | function usesLocaleStringSort(collection: CollectionLike<any, any>): boolean { |
| 134 | const opts = { ...DEFAULT_COMPARE_OPTIONS, ...collection.compareOptions } |
| 135 | return opts.stringSort === `locale` |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Whether a range predicate on this operand would use an index ordering that |
no outgoing calls
no test coverage detected