import { Where } from "https://deno.land/x/soda@0.4.5/mod.ts";
Static Methods
Select records where the value of a field is between two values
Works with the following datatypes:
- Number
- Floating timestamp
- Fixed timestamp
- Text
intersects(field: , value: string): Where
| string
Allows you to compare two geospatial types to see if they intersect or overlap each other
Note: This function is only available on the 2.1 endpoint
notBetween(): Where
field: ,
| string
startValue: any,
endValue: any,
startsWith(field: string | FieldObject<DataType.Text>, value: string): Where
This function is used on fields of type Text
to find records that start with a given string
withinBox(): Where
field: string | FieldObject<DataType.Location>,
latNW: number,
lonNW: number,
latSE: number,
lonSE: number,
This function is used on fields of type Location
to find records within a given box. This takes the form of a rectangle, with the northwest corner and southeast corner specified by latitude and longitude.
This function is used on fields of type Location
to find records within a given circle