func TestLimit(t *testing.T) { limit := nodes.Limit(1) expected := "LIMIT 1" if got, _ := sql.Accept(limit); expected != got { t.Errorf("TestLimit was expected to return %s, got %s", expected, got) } }
// Sets the Tree's Limit to the given integer. func (self *UpdateManager) Limit(expr interface{}) *UpdateManager { self.Tree.Limit = nodes.Limit(expr) return self }
// Sets the Tree's Limit to the given integer. func (self *SelectManager) Limit(take int) *SelectManager { self.Tree.Limit = nodes.Limit(take) return self }