()
| 361 | } |
| 362 | |
| 363 | func ExampleSelectBuilder_Columns() { |
| 364 | query := Select("id").Columns("created", "first_name").From("users") |
| 365 | |
| 366 | sql, _, _ := query.ToSql() |
| 367 | fmt.Println(sql) |
| 368 | // Output: SELECT id, created, first_name FROM users |
| 369 | } |
| 370 | |
| 371 | func ExampleSelectBuilder_Columns_order() { |
| 372 | // out of order is ok too |