Skip to content
Snippets Groups Projects
  1. Mar 25, 2014
  2. Mar 24, 2014
  3. Mar 20, 2014
  4. Mar 17, 2014
  5. Mar 13, 2014
  6. Mar 12, 2014
  7. Mar 11, 2014
  8. Mar 07, 2014
  9. Mar 06, 2014
  10. Mar 05, 2014
    • Roman Tsisyk's avatar
      Replace index:iterator() API with Lua-compatible pairs() · 52915a4c
      Roman Tsisyk authored
      This patch converts space:iterator() to be compatible with Lua
      for-in loop conventions. The most important change is that
      generating function now returns *state* as its first result:
      
          for _state, val in space.index[0]:pairs() do work(val) end
      
      New syntax follows the best practices of Lua community and makes
      index API to be more consistent with pairs() and tuple iterators.
      
      This change partially restores pairs() logic as it was implemented
      before 49875615.
      52915a4c
  11. Mar 03, 2014
  12. Feb 28, 2014
  13. Feb 27, 2014
    • Roman Tsisyk's avatar
      Implement a new version of select() API · 199c0a22
      Roman Tsisyk authored
      This patch introduces backward-incompatible changes to select()
      and adds couple new methods:
      
        * index:select(key) -> tuple, tuple, ... was changed to
          index:select(key, opts = {}) -> { tuple } where opts can be
      
             - iterator = ALL if key == nil or key == {} | EQ otherwse
             - offset = 0
             - limit = unlimited
      
        * index:get(key) -> tuple | nil | error on more than one tuple
          a wrapper for select() to get the single tuple
      
        * space:put(tuple) -> tuple
          an alias for space:replace() (to provide integrity with get())
      
      Test suite, box.space and box.net.box API were also updated to
      meet changes.
      199c0a22
  14. Feb 25, 2014
  15. Feb 24, 2014
Loading