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

lucaong / cubdb / 65 / 1
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: writes-since-compaction
DEFAULT BRANCH: master
Ran 11 Sep 2019 12:48PM UTC
Files 13
Run time 0s
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

11 Sep 2019 12:38PM UTC coverage: 99.372%. First build
ASSERT_RECEIVE_TIMEOUT=300

push

travis-ci

lucaong
[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
)
```

475 of 478 relevant lines covered (99.37%)

3128.57 hits per line

Source Files on job 65.1 (ASSERT_RECEIVE_TIMEOUT=300)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 16
  • Travis Job 65.1
  • fcdc6c99 on github
  • Next Job for ASSERT_RECEIVE_TIMEOUT=300 on better_select_key_ranges_api (#67.3)
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

© 2026 Coveralls, Inc