added new geoPoint field

This commit is contained in:
Gani Georgiev committed 2025-04-02 11:52:50 +03:00
1 parent f3a836eb7c
commit 4c5abd5bd9
60 files changed
+1373 -1143

No files matched your search

+7
View File
@@ -969,6 +969,13 @@ func (m *Record) GetDateTime(key string) types.DateTime {
return d
}
// GetGeoPoint returns the data value for "key" as a GeoPoint instance.
func (m *Record) GetGeoPoint(key string) types.GeoPoint {
point := types.GeoPoint{}
_ = point.Scan(m.Get(key))
return point
}
// GetStringSlice returns the data value for "key" as a slice of non-zero unique strings.
func (m *Record) GetStringSlice(key string) []string {
return list.ToUniqueStringSlice(m.Get(key))