fix other imports

move-migrations-to-option v0.1.3
Mason Payne 2024-08-22 00:52:50 -06:00
parent 46409becf8
commit 208348206a
1 changed files with 3 additions and 1 deletions

View File

@ -6,9 +6,11 @@ import (
"database/sql"
"embed"
"fmt"
"github.com/hashicorp/go-multierror"
"github.com/tursodatabase/go-libsql"
"os"
"path/filepath"
"time"
)
type LibSqlDB struct {
@ -93,7 +95,7 @@ func libSqlDefaults() *LibSqlDB {
func (t *LibSqlDB) Close() error {
var resultError *multierror.Error
if err := t.db.Close(); err != nil {
if err := t.DB.Close(); err != nil {
resultError = multierror.Append(resultError, fmt.Errorf("failed to close database: %w", err))
}