Improve Store

Still need to fill out SQLite bootstrap

Also setup plug-in system mechanism
This commit is contained in:
Dan Jones 2024-09-14 20:37:51 -05:00
commit e7b88bcc09
10 changed files with 154 additions and 6 deletions

View file

@ -7,14 +7,19 @@ import (
"codeberg.org/danjones000/lenore"
"codeberg.org/danjones000/lenore/config"
"github.com/go-ap/storage-sqlite"
"codeberg.org/danjones000/lenore/store"
)
func main() {
conf := config.Config{BaseURL: "http://localhost:4523/"}
sqlConf := sqlite.Config{Path: "storage"}
conf := config.Config{
BaseURL: "http://localhost:4523/",
Conn: config.ConnSettings{
Store: "sqlite",
DSN: "storage",
},
}
db, err := sqlite.New(sqlConf)
db, err := store.MakeStore(conf.Conn.Store, conf)
if err != nil {
panic(err)
}