nurse/protocols/sql/validation.go
Peter Kurfer c52912c5aa
Some checks failed
agola/nurse/Test and lint The run failed
refactor: migrate to new Gitea URL
2022-09-22 11:46:36 +02:00

18 lines
324 B
Go

package sql
import (
"database/sql"
_ "github.com/go-sql-driver/mysql"
_ "github.com/jackc/pgx/v5/stdlib"
"code.icb4dc0.de/prskr/nurse/validation"
)
var registry = validation.NewRegistry[*sql.Rows]()
func init() {
registry.Register("rows", func() validation.FromCall[*sql.Rows] {
return new(RowsValidator)
})
}