MCPcopy
hub / github.com/Masterminds/squirrel / ExampleSelectBuilder_ScanContext

Function ExampleSelectBuilder_ScanContext

select_test.go:397–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395}
396
397func ExampleSelectBuilder_ScanContext() {
398
399 var db *sql.DB
400
401 query := Select("id", "created", "first_name").From("users")
402 query = query.RunWith(db)
403
404 var id int
405 var created time.Time
406 var firstName string
407
408 if err := query.ScanContext(ctx, &id, &created, &firstName); err != nil {
409 log.Println(err)
410 return
411 }
412}
413
414func ExampleSelectBuilder_RunWith() {
415

Callers

nothing calls this directly

Calls 4

SelectFunction · 0.85
FromMethod · 0.45
RunWithMethod · 0.45
ScanContextMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…