@ -112,6 +112,10 @@ func main() {
}
dbpath := os.Getenv("XBIT_DB")
if dbpath == "" {
log.Fatal("XBIT_DB not set")
var db TimelineDB
var err error
db.DB, err = sql.Open("sqlite3", dbpath)