ci: add Go/Node CI, Docker multi-stage, Makefile, and pre-commit hooks; update README

This commit is contained in:
Wikid82
2025-11-17 18:16:03 -05:00
parent 4f3b7d8f99
commit 6b0dfa7085
40 changed files with 4954 additions and 85 deletions
+18
View File
@@ -0,0 +1,18 @@
package database
import (
"fmt"
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
// Open bootstraps a SQLite database using the provided filesystem path.
func Open(dbPath string) (*gorm.DB, error) {
db, err := gorm.Open(sqlite.Open(dbPath), &gorm.Config{})
if err != nil {
return nil, fmt.Errorf("open sqlite database: %w", err)
}
return db, nil
}