panic on init error
This commit is contained in:
parent
5f85c26d4a
commit
4346466345
@ -3,7 +3,7 @@ package advsql
|
||||
func Insert[T any](db *Database, query string, encoder func(v *T, encode EncodeFunc) error) InsertFunc[T] {
|
||||
s, err := db.prepare(query)
|
||||
if err != nil {
|
||||
return nil
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return func(value *T) error {
|
||||
|
Loading…
Reference in New Issue
Block a user