MCPcopy Index your code
hub / github.com/upper/db / Columns

Method Columns

clauses.go:55–55  ·  view source on GitHub ↗

Columns defines which columns to retrive. You should call From() after Columns() if you want to query data from an specific table. s.Columns("name", "last_name").From(...) It is also possible to use an alias for the column, this could be handy if you plan to use the alias later, use the "AS" keyw

(columns ...interface{})

Source from the content-addressed store, hash-verified

53 //
54 // s.Columns(db.Func("MAX", "id"))
55 Columns(columns ...interface{}) Selector
56
57 // From represents a FROM clause and is tipically used after Columns().
58 //

Callers 15

TestSelectFunction · 0.65
TestInsertFunction · 0.65
fetchRowFunction · 0.65
fetchRowsFunction · 0.65
fetchResultFunction · 0.65
TestBatchInsertMethod · 0.65
TestTemplateInsertFunction · 0.65
InsertMethod · 0.65
TestTemplateInsertFunction · 0.65
InsertMethod · 0.65
TestTemplateInsertFunction · 0.65

Implementers 1

selectorinternal/sqlbuilder/select.go

Calls

no outgoing calls

Tested by 8

TestSelectFunction · 0.52
TestInsertFunction · 0.52
TestTemplateInsertFunction · 0.52
TestTemplateInsertFunction · 0.52
TestTemplateInsertFunction · 0.52
TestTemplateInsertFunction · 0.52
TestTemplateInsertFunction · 0.52
TestTemplateInsertFunction · 0.52