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

Method From

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

From represents a FROM clause and is tipically used after Columns(). FROM defines from which table data is going to be retrieved s.Columns(...).From("people") It is also possible to use an alias for the table, this could be handy if you plan to use the alias later: s.Columns(...).From("people AS

(tables ...interface{})

Source from the content-addressed store, hash-verified

69 //
70 // s.Columns(...).From("people p").Where("p.name = ?", ...)
71 From(tables ...interface{}) Selector
72
73 // Distict represents a DISTINCT clause
74 //

Callers 15

PaginatorMethod · 0.65
buildCountMethod · 0.65
TestSelectFunction · 0.65
TestPaginateFunction · 0.65
BenchmarkSelect1Function · 0.65
BenchmarkSelect2Function · 0.65
BenchmarkSelect3Function · 0.65
TestPaginatorMethod · 0.65
CollectionsMethod · 0.65
TableExistsMethod · 0.65
PrimaryKeysMethod · 0.65

Implementers 1

selectorinternal/sqlbuilder/select.go

Calls

no outgoing calls

Tested by 13

TestSelectFunction · 0.52
TestPaginateFunction · 0.52
BenchmarkSelect1Function · 0.52
BenchmarkSelect2Function · 0.52
BenchmarkSelect3Function · 0.52
TestTemplateSelectFunction · 0.52
TestTemplateSelectFunction · 0.52
TestTemplateSelectFunction · 0.52
TestTemplateSelectFunction · 0.52
TestTemplateSelectFunction · 0.52