Handle some errors.

This commit is contained in:
Nuno Cruces
2025-01-17 14:40:12 +00:00
parent 9132f74b69
commit 407e13d238
7 changed files with 34 additions and 18 deletions

View File

@@ -99,10 +99,11 @@ func declare(db *sqlite3.Conn, _, _, _ string, arg ...string) (res *table, err e
}
func (t *table) Close() error {
var errs []error
for _, c := range t.cols {
c.Close()
errs = append(errs, c.Close())
}
return nil
return errors.Join(errs...)
}
func (t *table) BestIndex(idx *sqlite3.IndexInfo) error {