fix
- check CHANGELOG.md ver 0.2.1-alpha
This commit is contained in:
1 parent
a8f164c241
commit
9434b02422
8 files changed
+59
-7
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user