Documentation
¶
Overview ¶
Package to control static assets, e.g. databases, schema migrations sql files .etc.
This package also control some core constants, includes:
- default file location of database file.
- database schema version
- database type
- default backup location of database file
Index ¶
Constants ¶
View Source
const BackupDir = "backup"
Default backup directory to stored backup database. Inside RootDir.
View Source
const DatabaseFile = "storage.db"
Database filename.
View Source
const DatabaseType = "sqlite3"
Database type.
View Source
const RootDir = "comicInfo-parser"
Root Directory to storing all config files.
Variables ¶
This section is empty.
Functions ¶
func Config ¶
func Config() *config.ProgramConfig
Load config from yaml file. If any error occur in loading, then a default config will be returned, and no error return.
func DefaultDbWithBackup ¶
Return default lazydb that allow auto-backup when schema version changed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.