Remove Ex versions of Query and QueryRow
Always require context and prepend options to arguments if necessary.
This commit is contained in:
@@ -27,7 +27,7 @@ func Example_JSON() {
|
||||
|
||||
var output person
|
||||
|
||||
err = conn.QueryRow("select $1::json", input).Scan(&output)
|
||||
err = conn.QueryRow(context.Background(), "select $1::json", input).Scan(&output)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user