12 Commits

Author SHA1 Message Date
Danny van Kooten
2ca1e0f36e switch to hourly storage for stats.
- allows showing an hourly chart on the 'today' view
- fixes timezone issues when in 'today' view #134
- increases size of stats tables by factor 24, but that should be less of an issue after dbcadcd73772258f2d2fd781673e559d5ed74dba
2018-11-13 15:23:18 +01:00
Danny van Kooten
cb25b267da show only database name and maybe host when logging successful db connection. #174 2018-11-02 12:30:34 +01:00
Danny van Kooten
4dec431c4b use unexported values for sqlstore.Config struct fields 2018-11-02 11:50:43 +01:00
Danny van Kooten
6bc1af3564 set sqlite _busy_timeout to 5s to handle database is locked errors 2018-10-10 11:59:21 +02:00
Danny van Kooten
3b99e78135 set sqlite _busy_timeout to 5s to handle database is locked errors 2018-10-10 11:59:17 +02:00
Danny van Kooten
927c50b419 add & delete sites through api 2018-10-03 15:27:36 +02:00
Danny van Kooten
4ecaff85ac don't parse database driver from URL to also support mysql and sqlite. 2018-07-31 15:29:15 +02:00
Charley DAVID
98970057a2
Add support for FATHOM_DATABASE_URL 2018-07-31 08:41:08 -03:00
Danny van Kooten
b6f3be0e8e build postgres dsn string dynamically 2018-07-30 09:33:49 +02:00
Danny van Kooten
a6f9b385a3 option to set sslmode param in postgres & mysql connections using FATHOM_DATABASE_SSLMODE. closes #93 closes #90 closes #80 2018-07-12 13:37:52 +02:00
Danny
7f61259df3 use mysql Config.FormatDSN to generate dsn conn string for mysql. closes #56 closes #60 2018-06-13 10:04:42 +02:00
Danny
c30e5b3120 introduce datastore interface & stop relying on package var to retrieve db conn. relates to #29 2018-05-15 13:30:37 +02:00