func TestOffset(t *testing.T) { offset := nodes.Offset(1) expected := "OFFSET 1" if got, _ := sql.Accept(offset); expected != got { t.Errorf("TestOffset was expected to return %s, got %s", expected, got) } }
// Sets the Tree's Offset to the given integer. func (self *SelectManager) Offset(skip int) *SelectManager { self.Tree.Offset = nodes.Offset(skip) return self }