()
| 395 | } |
| 396 | |
| 397 | func 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 | |
| 414 | func ExampleSelectBuilder_RunWith() { |
| 415 |
nothing calls this directly
no test coverage detected
searching dependent graphs…