• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lucaong / cubdb / 66
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: writes-since-compaction
DEFAULT BRANCH: master
Ran 11 Sep 2019 12:50PM UTC
Jobs 3
Files 13
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
66

Pull #5

travis-ci

web-flow
[breaking change] improve the select/3 API for key ranges

The previous API had a few shortcomings:

  - There were corner cases for `nil` min_key/max_key, or
  min_key/max_key literally being tuples like `{123, :included}`

  - It was not possible in these corner cases to detect error conditions

  - Mispelling `:included` or `:excluded` would silently fail or lead to
  unexpected results

  - The API was a bit cumbersome in general

The new API is much clearer and removes the shortcomings:

```elixir
{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: {:bar, :excluded}
)
{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: :bar,
  max_key_inclusive: false
)

{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: nil
)
{:ok, result} = CubDB.select(db,
  min_key: :foo
)

{:ok, result} = CubDB.select(db,
  min_key: {nil, :included},
  max_key: :bar
)
{:ok, result} = CubDB.select(db,
  min_key: nil,
  max_key: :bar
)
```
Pull Request #5: [breaking change] improve the select/3 API for key ranges

14 of 14 new or added lines in 2 files covered. (100.0%)

475 of 478 relevant lines covered (99.37%)

10656.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 66.1 (ASSERT_RECEIVE_TIMEOUT=300) 11 Sep 2019 12:50PM UTC 0
99.37
Travis Job 66.1
2 66.2 (ASSERT_RECEIVE_TIMEOUT=300) 11 Sep 2019 12:55PM UTC 0
99.37
Travis Job 66.2
3 66.3 (ASSERT_RECEIVE_TIMEOUT=300) 11 Sep 2019 12:55PM UTC 0
99.37
Travis Job 66.3
Source Files on build 66
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #66
  • Pull Request #5
  • PR Base - master (#63)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc