We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13d1b24 commit c5b4775Copy full SHA for c5b4775
query/example_test.go
@@ -383,11 +383,7 @@ func Example_executeScript() {
383
if err != nil {
384
panic(err)
385
}
386
- defer db.Close(ctx) // cleanup resources
387
- var (
388
- id int32 // required value
389
- myStr string // required value
390
- )
+ defer db.Close(ctx) // cleanup resources
391
op, err := db.Query().ExecuteScript(ctx, // context manage exiting from Do
392
`SELECT CAST($id AS Uint64) AS id, CAST($myStr AS Text) AS myStr`,
393
time.Hour,
0 commit comments