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

Method isSliceModelWithData

orm/query.go:1561–1567  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1559}
1560
1561func (q *Query) isSliceModelWithData() bool {
1562 if !q.hasTableModel() {
1563 return false
1564 }
1565 m, ok := q.tableModel.(*sliceTableModel)
1566 return ok && m.sliceLen > 0
1567}
1568
1569//------------------------------------------------------------------------------
1570

Callers 2

AppendQueryMethod · 0.80
AppendQueryMethod · 0.80

Calls 1

hasTableModelMethod · 0.95

Tested by

no test coverage detected