✨ Improve Store
Still need to fill out SQLite bootstrap Also setup plug-in system mechanism
This commit is contained in:
parent
c4513aa94b
commit
e7b88bcc09
10 changed files with 154 additions and 6 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue