MCPcopy Create free account
hub / github.com/go-pg/pg / TableExpr

Method TableExpr

orm/query.go:306–309  ·  view source on GitHub ↗
(expr string, params ...interface{})

Source from the content-addressed store, hash-verified

304}
305
306func (q *Query) TableExpr(expr string, params ...interface{}) *Query {
307 q.tables = append(q.tables, SafeQuery(expr, params...))
308 return q
309}
310
311func (q *Query) Distinct() *Query {
312 q.distinctOn = make([]*SafeQueryAppender, 0)

Callers 5

BenchmarkForEachRealFunction · 0.80
BenchmarkForEachInMemoryFunction · 0.80
db_test.goFile · 0.80
insert_test.goFile · 0.80
update_test.goFile · 0.80

Calls 1

SafeQueryFunction · 0.70

Tested by 2

BenchmarkForEachRealFunction · 0.64
BenchmarkForEachInMemoryFunction · 0.64