MCPcopy Index your code
hub / github.com/Masterminds/squirrel / ExampleSelectBuilder_Columns_order

Function ExampleSelectBuilder_Columns_order

select_test.go:371–378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

369}
370
371func ExampleSelectBuilder_Columns_order() {
372 // out of order is ok too
373 query := Select("id").Columns("created").From("users").Columns("first_name")
374
375 sql, _, _ := query.ToSql()
376 fmt.Println(sql)
377 // Output: SELECT id, created, first_name FROM users
378}
379
380func ExampleSelectBuilder_Scan() {
381

Callers

nothing calls this directly

Calls 4

SelectFunction · 0.85
ToSqlMethod · 0.65
ColumnsMethod · 0.45
FromMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…