- check CHANGELOG.md ver 0.2.1-alpha
This commit is contained in:
abelith committed 2026-08-14 19:14:18 +05:00
1 parent a8f164c241
commit 9434b02422
8 files changed
+59 -7

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@ package sqlite
import (
"context"
"database/sql"
"fmt"
"github.com/abelith/spellbook/internal/errors"
"github.com/abelith/spellbook/internal/models"
"strings"
)
@@ -33,7 +33,7 @@ func NewRepo(db *sql.DB) *Repo {
func (r *Repo) Init(ctx context.Context) error {
if r.db == nil {
return fmt.Errorf("no db provided")
return errors.ErrNoDBProvided
}
if _, err := r.db.ExecContext(ctx, schema); err != nil {