UseSQLite resets the Config's Database to use default values for a SQLite setup.
(fresh bool)
| 231 | |
| 232 | // UseSQLite resets the Config's Database to use default values for a SQLite setup. |
| 233 | func (cfg *Config) UseSQLite(fresh bool) { |
| 234 | cfg.Database.Type = "sqlite3" |
| 235 | if fresh { |
| 236 | cfg.Database.FileName = "writefreely.db" |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | // IsSecureStandalone returns whether or not the application is running as a |
| 241 | // standalone server with TLS enabled. |