summary refs log tree commit diff stats
path: root/storage/storage.go
blob: 24f770db646652c1815719f09bfc923a9d634662 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package storage

import (
	"sync"

	"tildegit.org/andinus/perseus/storage/sqlite3"
)

// Init initializes the database.
func Init() *sqlite3.DB {
	var db sqlite3.DB = sqlite3.DB{
		Mu: new(sync.RWMutex),
	}

	sqlite3.Init(&db)
	return &db
}