Add README and WIP server lifecycle

This commit is contained in:
Miguel de la Cruz 2021-09-12 00:32:07 +02:00
parent 96bd6a8602
commit 19a2096193
7 changed files with 118 additions and 2 deletions

View file

@ -25,6 +25,7 @@ func addPathOptions(path string) string {
func NewStore(path string) (*Store, error) {
s := &Store{Path: path}
// ToDo: should do this at start time instead of create time?
conn, err := sql.Open("sqlite3", addPathOptions(path))
if err != nil {
return nil, err