Documentation ¶
Overview ¶
Package config provide the configurations to run this app.
Index ¶
Constants ¶
View Source
const ( // DefaultPathToDatabase defines the path to the sqlite storage file. DefaultPathToDatabase = "./storage" // DefaultPathToSchemaScripts defines the path to the scripts managing the database structure. // nolint: godox DefaultPathToSchemaScripts = "./scripts/sql/sqlite" // TODO: change that it works with other dialects like postgres )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct { StoragePath *string `json:"storage_path"` SchemaScriptsPath *string `json:"schema_scripts_path"` }
Database provides the configuration for the database.
func (*Database) GetSchemaScriptPath ¶
GetSchemaScriptPath returns the path to the schema script files managing the database structure.
func (*Database) GetStoragePath ¶
GetStoragePath returns the path to the storage file.
Click to show internal directories.
Click to hide internal directories.