This repository was archived by the owner on Oct 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -291,13 +291,13 @@ export default class PostgrestFilterBuilder<T> extends PostgrestTransformBuilder
291
291
* @param column The column to filter on.
292
292
* @param range The range to filter with.
293
293
*/
294
- adjacent ( column : keyof T , range : string ) : this {
294
+ rangeAdjacent ( column : keyof T , range : string ) : this {
295
295
this . url . searchParams . append ( `${ column } ` , `adj.${ range } ` )
296
296
return this
297
297
}
298
298
299
- /** @deprecated Use `adjacent ()` instead. */
300
- adj = this . adjacent
299
+ /** @deprecated Use `rangeAdjacent ()` instead. */
300
+ adj = this . rangeAdjacent
301
301
302
302
/**
303
303
* Finds all rows whose array or range value on the stated `column` overlaps
Original file line number Diff line number Diff line change @@ -496,8 +496,8 @@ test('rangeLte', async () => {
496
496
` )
497
497
} )
498
498
499
- test ( 'adjacent ' , async ( ) => {
500
- const res = await postgrest . from ( 'users' ) . select ( 'age_range' ) . adjacent ( 'age_range' , '[2,25)' )
499
+ test ( 'rangeAdjacent ' , async ( ) => {
500
+ const res = await postgrest . from ( 'users' ) . select ( 'age_range' ) . rangeAdjacent ( 'age_range' , '[2,25)' )
501
501
expect ( res ) . toMatchInlineSnapshot ( `
502
502
Object {
503
503
"body": Array [
You can’t perform that action at this time.
0 commit comments