Compare commits

..

No commits in common. "df11d6522dc279e241dcb9937594b93cc05766f0" and "56f869c10f402d9905ad7bf7c6a16b02fe280d4e" have entirely different histories.

2 changed files with 0 additions and 19 deletions

View File

@ -32,17 +32,6 @@ func ToInteger[T constraints.Integer](s string, defaults T) T {
}
return T(i)
}
func ToInt[T constraints.Integer](s string) T {
defaults := T(0)
if s == "" {
return defaults
}
i, err := strconv.ParseInt(s, 10, 64)
if err != nil {
return defaults
}
return T(i)
}
func Md5(str string) string {
h := md5.New()

View File

@ -271,11 +271,3 @@ func findScanner[T Model](db dbQuery, ctx context.Context, fn func(T), q *QueryC
err = db.Select(ctx, &v, s, args...)
return
}
func FindScannerFromDB[T Model](db dbQuery, ctx context.Context, fn func(T), q *QueryCondition) error {
return findScanner[T](db, ctx, fn, q)
}
func FindScanner[T Model](ctx context.Context, fn func(T), q *QueryCondition) error {
return findScanner[T](globalBb, ctx, fn, q)
}