MCPcopy
hub / github.com/gocraft/dbr / From

Method From

select.go:279–282  ·  view source on GitHub ↗

From specifies table to select from. table can be Builder like SelectStmt, or string.

(table interface{})

Source from the content-addressed store, hash-verified

277// From specifies table to select from.
278// table can be Builder like SelectStmt, or string.
279func (b *SelectStmt) From(table interface{}) *SelectStmt {
280 b.Table = table
281 return b
282}
283
284func (b *SelectStmt) Distinct() *SelectStmt {
285 b.IsDistinct = true

Callers 15

TestNullTypesScanningFunction · 0.80
TestTransactionCommitFunction · 0.80
TestTransactionRollbackFunction · 0.80
TestCommonSQLInjectionsFunction · 0.80
TestBasicCRUDFunction · 0.80
TestTimeoutFunction · 0.80
TestSelectStmtFunction · 0.80
BenchmarkSelectSQLFunction · 0.80
TestMapsFunction · 0.80
TestSelectRowsFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestNullTypesScanningFunction · 0.64
TestTransactionCommitFunction · 0.64
TestTransactionRollbackFunction · 0.64
TestCommonSQLInjectionsFunction · 0.64
TestBasicCRUDFunction · 0.64
TestTimeoutFunction · 0.64
TestSelectStmtFunction · 0.64
BenchmarkSelectSQLFunction · 0.64
TestMapsFunction · 0.64
TestSelectRowsFunction · 0.64