mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2026-02-05 02:55:30 +00:00
+FTS5 Rebuild
This commit is contained in:
23
dbmodels/settings.go
Normal file
23
dbmodels/settings.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package dbmodels
|
||||
|
||||
import "github.com/pocketbase/pocketbase/core"
|
||||
|
||||
type Setting struct {
|
||||
core.BaseRecordProxy
|
||||
}
|
||||
|
||||
func (s *Setting) Key() string {
|
||||
return s.GetString(KEY_FIELD)
|
||||
}
|
||||
|
||||
func (s *Setting) SetKey(key string) {
|
||||
s.Set(KEY_FIELD, key)
|
||||
}
|
||||
|
||||
func (s *Setting) Value() any {
|
||||
return s.GetRaw(VALUE_FIELD)
|
||||
}
|
||||
|
||||
func (s *Setting) SetValue(value any) {
|
||||
s.Set(VALUE_FIELD, value)
|
||||
}
|
||||
Reference in New Issue
Block a user