2022-06-18 09:45:45 +00:00
|
|
|
package sql
|
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
|
|
|
|
_ "github.com/go-sql-driver/mysql"
|
|
|
|
_ "github.com/jackc/pgx/v5/stdlib"
|
|
|
|
|
2022-08-02 18:45:09 +00:00
|
|
|
"code.1533b4dc0.de/prskr/nurse/validation"
|
2022-06-18 09:45:45 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var registry = validation.NewRegistry[*sql.Rows]()
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
registry.Register("rows", func() validation.FromCall[*sql.Rows] {
|
|
|
|
return new(RowsValidator)
|
|
|
|
})
|
|
|
|
}
|