fix(Type): Scan method fixes

This commit is contained in:
2025-01-01 22:24:59 +01:00
parent b5fc0df93b
commit 864953076a
3 changed files with 136 additions and 87 deletions

View File

@@ -1,5 +1,7 @@
package Type
import "database/sql"
// Created to abstract over Is_some and Is_ok
type ValueContainer interface {
HasValue() bool
@@ -43,4 +45,6 @@ var (
_ Resulter[any] = (*Result[any])(nil)
_ ValueContainer = (*Optional[any])(nil)
_ ValueContainer = (*Result[any])(nil)
_ sql.Scanner = (*Optional[any])(nil)
// _ sql.Scanner = (*Result[any])(nil)
)