MCPcopy
hub / github.com/upper/db / Select

Method Select

sql.go:52–52  ·  view source on GitHub ↗

Select initializes and returns a Selector, it accepts column names as parameters. The returned Selector does not initially point to any table, a call to From() is required after Select() to complete a valid query. Example: q := sqlbuilder.Select("first_name", "last_name").From("people").Where(...

(columns ...interface{})

Source from the content-addressed store, hash-verified

50 //
51 // q := sqlbuilder.Select("first_name", "last_name").From("people").Where(...)
52 Select(columns ...interface{}) Selector
53
54 // SelectFrom creates a Selector that selects all columns (like SELECT *)
55 // from the given table.

Callers 15

PaginatorMethod · 0.65
buildCountMethod · 0.65
BenchmarkSelect1Function · 0.65
BenchmarkSelect2Function · 0.65
BenchmarkSelect3Function · 0.65
TestSelectOnlyIDsMethod · 0.65
TestFunctionMethod · 0.65
TestGroupMethod · 0.65
TestPaginatorMethod · 0.65
Test_Issue565Method · 0.65

Implementers 1

sqlBuilderinternal/sqlbuilder/builder.go

Calls

no outgoing calls

Tested by 13

BenchmarkSelect1Function · 0.52
BenchmarkSelect2Function · 0.52
BenchmarkSelect3Function · 0.52
TestTemplateSelectFunction · 0.52
TestTemplateSelectFunction · 0.52
TestTemplateSelectFunction · 0.52
TestTemplateSelectFunction · 0.52
TestTemplateSelectFunction · 0.52