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

Method modelHasTableAlias

orm/query.go:1336–1338  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1334}
1335
1336func (q *Query) modelHasTableAlias() bool {
1337 return q.hasExplicitTableModel() && q.tableModel.Table().Alias != ""
1338}
1339
1340func (q *Query) hasTables() bool {
1341 return q.modelHasTableName() || len(q.tables) > 0

Callers 2

appendTablesMethod · 0.80

Calls 2

hasExplicitTableModelMethod · 0.95
TableMethod · 0.65

Tested by

no test coverage detected