MCPcopy Index your code
hub / github.com/writefreely/writefreely / UseSQLite

Method UseSQLite

config/config.go:233–238  ·  view source on GitHub ↗

UseSQLite resets the Config's Database to use default values for a SQLite setup.

(fresh bool)

Source from the content-addressed store, hash-verified

231
232// UseSQLite resets the Config's Database to use default values for a SQLite setup.
233func (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.

Callers 2

ConfigMethod · 0.80
ConfigureFunction · 0.80

Calls

no outgoing calls

Tested by 1

ConfigMethod · 0.64