forked from massivebox/ecodash
SQLite Initial Implementation
This is the first, most basic implementation of a SQLite database for caching. Future commits will make it much more optimized and able to efficiently store data for periods longer than 8 days.
This commit is contained in:
parent
6dc8fa3750
commit
e9125b783c
6 changed files with 56 additions and 33 deletions
2
main.go
2
main.go
|
@ -20,7 +20,7 @@ func main() {
|
|||
cr := cron.New()
|
||||
_, err = cr.AddFunc("@hourly", config.updateCache)
|
||||
if err != nil {
|
||||
return
|
||||
log.Fatal(err)
|
||||
}
|
||||
cr.Start()
|
||||
config.updateCache()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue