2025-01-19 17:32:55 +01:00
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
|
|
|
viseconfig "git.grassecon.net/grassrootseconomics/visedriver/config"
|
2025-01-22 17:40:32 +01:00
|
|
|
"git.grassecon.net/grassrootseconomics/visedriver/storage"
|
2025-01-19 17:32:55 +01:00
|
|
|
)
|
|
|
|
|
2025-01-22 10:42:39 +01:00
|
|
|
func NewOverride() *viseconfig.Override {
|
|
|
|
o := &viseconfig.Override{
|
2025-01-22 19:37:27 +01:00
|
|
|
StateConnMode: storage.DBMODE_TEXT,
|
2025-01-22 17:40:32 +01:00
|
|
|
ResourceConnMode: storage.DBMODE_TEXT,
|
2025-01-22 19:37:27 +01:00
|
|
|
UserConnMode: storage.DBMODE_BINARY,
|
2025-01-21 15:25:55 +01:00
|
|
|
}
|
|
|
|
return o
|
|
|
|
}
|
|
|
|
|
2025-01-22 10:42:39 +01:00
|
|
|
func Apply(o *viseconfig.Override) error {
|
|
|
|
viseconfig.ApplyConn(o)
|
2025-01-19 17:32:55 +01:00
|
|
|
return nil
|
|
|
|
}
|