pqb 0.7.4 → 0.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -263,23 +263,23 @@ const all = {
263
263
  (key, value, values) => `${key} >= ${quoteValue(value, values)}`
264
264
  ),
265
265
  contains: () => createOperator(
266
- (key, value, values) => `${key} LIKE '%' || ${quoteValue(value, values)} || '%'`
267
- ),
268
- containsInsensitive: () => createOperator(
269
266
  (key, value, values) => `${key} ILIKE '%' || ${quoteValue(value, values)} || '%'`
270
267
  ),
271
- startsWith: () => createOperator(
272
- (key, value, values) => `${key} LIKE ${quoteValue(value, values)} || '%'`
268
+ containsSensitive: () => createOperator(
269
+ (key, value, values) => `${key} LIKE '%' || ${quoteValue(value, values)} || '%'`
273
270
  ),
274
- startsWithInsensitive: () => createOperator(
271
+ startsWith: () => createOperator(
275
272
  (key, value, values) => `${key} ILIKE ${quoteValue(value, values)} || '%'`
276
273
  ),
277
- endsWith: () => createOperator(
278
- (key, value, values) => `${key} LIKE '%' || ${quoteValue(value, values)}`
274
+ startsWithSensitive: () => createOperator(
275
+ (key, value, values) => `${key} LIKE ${quoteValue(value, values)} || '%'`
279
276
  ),
280
- endsWithInsensitive: () => createOperator(
277
+ endsWith: () => createOperator(
281
278
  (key, value, values) => `${key} ILIKE '%' || ${quoteValue(value, values)}`
282
279
  ),
280
+ endsWithSensitive: () => createOperator(
281
+ (key, value, values) => `${key} LIKE '%' || ${quoteValue(value, values)}`
282
+ ),
283
283
  between: () => createOperator(
284
284
  (key, [from, to], values) => `${key} BETWEEN ${quoteValue(from, values)} AND ${quoteValue(
285
285
  to,
@@ -313,11 +313,11 @@ const numeric = () => __spreadProps$j(__spreadValues$p({}, base()), {
313
313
  });
314
314
  const text$1 = () => __spreadProps$j(__spreadValues$p({}, base()), {
315
315
  contains: all.contains(),
316
- containsInsensitive: all.containsInsensitive(),
316
+ containsSensitive: all.containsSensitive(),
317
317
  startsWith: all.startsWith(),
318
- startsWithInsensitive: all.startsWithInsensitive(),
318
+ startsWithSensitive: all.startsWithSensitive(),
319
319
  endsWith: all.endsWith(),
320
- endsWithInsensitive: all.endsWithInsensitive()
320
+ endsWithSensitive: all.endsWithSensitive()
321
321
  });
322
322
  const json = () => __spreadProps$j(__spreadValues$p({}, base()), {
323
323
  jsonPath: all.jsonPath(),