mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-20 21:14:04 +02:00
updated changelog and exposed search.TokenFunctions
This commit is contained in:
1 parent
46186f84f0
commit
bf9a7b1e3d
4 files changed
+14
-12
No files matched your search
@@ -6,12 +6,12 @@ import (
|
||||
"github.com/ganigeorgiev/fexpr"
|
||||
)
|
||||
|
||||
var tokenFunctions = map[string]func(
|
||||
var TokenFunctions = map[string]func(
|
||||
argTokenResolverFunc func(fexpr.Token) (*ResolverResult, error),
|
||||
args ...fexpr.Token,
|
||||
) (*ResolverResult, error){
|
||||
// geoDistance(lonA, latA, lonB, latB) calculates the Haversine
|
||||
// distance between 2 coordinates in kilometres (https://www.movable-type.co.uk/scripts/latlong.html).
|
||||
// distance between 2 points in kilometres (https://www.movable-type.co.uk/scripts/latlong.html).
|
||||
//
|
||||
// The accepted arguments at the moment could be either a plain number or a column identifier (including NULL).
|
||||
// If the column identifier cannot be resolved and converted to a numeric value, it resolves to NULL.
|
||||
|
||||
Reference in new issue
Block a user