mirror of
https://github.com/jackc/pgx.git
synced 2025-05-31 11:42:24 +00:00
12 lines
249 B
Go
12 lines
249 B
Go
package pgx
|
|
|
|
type test interface {
|
|
Fatalf(format string, args ...interface{})
|
|
}
|
|
|
|
func mustPrepare(t test, conn *Connection, name, sql string) {
|
|
if err := conn.Prepare(name, sql); err != nil {
|
|
t.Fatalf("Could not prepare %v: %v", name, err)
|
|
}
|
|
}
|