mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-09 05:17:57 +01:00
added Record.GetInt64(field) helper
This commit is contained in:
1 parent
50a7700450
commit
bf1f164014
3 files changed
+44
No files matched your search
@@ -959,6 +959,11 @@ func (m *Record) GetInt(key string) int {
|
||||
return cast.ToInt(m.Get(key))
|
||||
}
|
||||
|
||||
// GetInt64 returns the data value for "key" as an int64.
|
||||
func (m *Record) GetInt64(key string) int64 {
|
||||
return cast.ToInt64(m.Get(key))
|
||||
}
|
||||
|
||||
// GetFloat returns the data value for "key" as a float64.
|
||||
func (m *Record) GetFloat(key string) float64 {
|
||||
return cast.ToFloat64(m.Get(key))
|
||||
|
||||
Reference in new issue
Block a user