Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve DB iteration #10

Merged
merged 18 commits into from Dec 7, 2011
Merged

Improve DB iteration #10

merged 18 commits into from Dec 7, 2011

Commits on Nov 28, 2011

  1. Update DB#each to take 3 optional args: key_from, key_to, reversed

    Default: list all keys
        >> db.each { |k,v| puts k }
        a
        b
        c
    
    Set a key_from:
        >> db.each('b') { |k,v| puts k }
        b
        c
    
    Set a key_from and key_to:
        >> db.each('a', 'c') { |k,v| puts k }
        a
        b
    
    Reversed!
        >> db.each(nil, nil, true) { |k,v| puts k }
        c
        b
        a
    
    Reversed key_from:
        >> db.each('b', nil, true) { |k,v| puts k }
        b
        a
    technoweenie committed Nov 28, 2011
    Copy the full SHA
    9ecb158 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    dcac0dd View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    b80ea34 View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    68b1ff2 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2011

  1. add iteration test

    technoweenie committed Nov 29, 2011
    Copy the full SHA
    1174d14 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    4e6fd35 View commit details
    Browse the repository at this point in the history

Commits on Dec 3, 2011

  1. Copy the full SHA
    232d010 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    b976809 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    78b7eea View commit details
    Browse the repository at this point in the history
  4. Copy the full SHA
    4af9562 View commit details
    Browse the repository at this point in the history
  5. Copy the full SHA
    782ae5f View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    e224962 View commit details
    Browse the repository at this point in the history
  7. add a test

    technoweenie committed Dec 3, 2011
    Copy the full SHA
    028fab1 View commit details
    Browse the repository at this point in the history
  8. Copy the full SHA
    4a7bdd1 View commit details
    Browse the repository at this point in the history
  9. Copy the full SHA
    e22019f View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2011

  1. Copy the full SHA
    40e0037 View commit details
    Browse the repository at this point in the history

Commits on Dec 7, 2011

  1. Copy the full SHA
    42b9aff View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    6a246b5 View commit details
    Browse the repository at this point in the history