# comments are allowed, otherwise it is json
# this file does not get eval'ed, it is parsed
# only double quotes! and no excess commas
{
# fileparams options
"fileparams" : {
# dir to store datafiles, each DataProvider class
# then has its own path to append
"datafiles-dir" : "datazz/files"
},
# database IO options
"dbparams" : {
# which DB to use: SQLite, MySQL (case sensitive)
"dbtype" : "SQLite",
# the name of DB
# in the case of SQLite, this is a filepath
# all non-existing dirs will be created (by module, not by DBI)
"dbdir" : "datazz/db",
"dbname" : "covid19.sqlite",
# how to handle duplicates in DB? (duplicate=have same PrimaryKey)
# only-better : replace records in DB if outdated (meaning number of markers is less, e.g. terminal or confirmed)
# replace : force replace irrespective of markers
# ignore : if there is a duplicate in DB DONT REPLACE/DONT INSERT
# (see also Statistics::Covid::Datum for up-to-date info)
"replace-existing-db-record" : "only-better",
# username and password if needed
# unfortunately this is in plain text
# BE WARNED: do not store your main DB password here!!!!
# perhaps create a new user or use SQLite
# there is no need for these when using SQLite
"hostname" : "", # must be a string (MySQL-related)
"port" : "", # must be a string (MySQL-related)
"username" : "", # must be a string
"password" : "", # must be a string
# options to pass to DBI::connect
# see https://metacpan.org/pod/DBI for all options
"dbi-connect-params" : {
"RaiseError" : 1, # die on error
"PrintError" : 0 # do not print errors or warnings
}
}
}