from stash menu sidebar

This commit is contained in:
sindhu
2024-05-03 09:21:49 +07:00
parent f5e512aa6e
commit 80ff72e3b3
11 changed files with 1989 additions and 2 deletions

26
db/mastermenuusergroup.go Normal file
View File

@@ -0,0 +1,26 @@
package db
import (
"database/sql"
_ "github.com/glebarez/go-sqlite"
)
type MasterMenuUserGroupStore struct {
Db *sql.DB
}
func NewMasterMenuUserGroupStore(dbName string) (MasterMenuUserGroupStore, error) {
Db, err := getConnection(dbName)
if err != nil {
return MasterMenuUserGroupStore{}, err
}
if err := createMigrations(dbName, Db); err != nil {
return MasterMenuUserGroupStore{}, err
}
return MasterMenuUserGroupStore{
Db,
}, nil
}