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

lucaong / cubdb / 69
99%

Build:
DEFAULT BRANCH: master
Ran 11 Sep 2019 01:36PM UTC
Jobs 3
Files 13
Run time 10s
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
69

push

travis-ci

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

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
# Exclusive ranges:
## Before:
{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: {:bar, :excluded}
)
## Now:
{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: :bar,
  max_key_inclusive: false
)

# Open-ended ranges:
## Before:
{:ok, result} = CubDB.select(db,
  min_key: :foo,
  max_key: nil
)
## Now:
{:ok, result} = CubDB.select(db,
  min_key: :foo
)

# Setting min/max key to `nil`:
## Before:
{:ok, result} = CubDB.select(db,
  min_key: {nil, :included},
  max_key: :bar
)
## Now:
{:ok, result} = CubDB.select(db,
  min_key: nil,
  max_key: :bar
)
```

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

475 of 478 relevant lines covered (99.37%)

8995.0 hits per line

Jobs
ID Job ID Ran Files Coverage
1 69.1 (ASSERT_RECEIVE_TIMEOUT=300) 11 Sep 2019 01:36PM UTC 0
99.37
Travis Job 69.1
2 69.2 (ASSERT_RECEIVE_TIMEOUT=300) 11 Sep 2019 01:36PM UTC 0
99.37
Travis Job 69.2
3 69.3 (ASSERT_RECEIVE_TIMEOUT=300) 11 Sep 2019 01:36PM UTC 0
99.37
Travis Job 69.3
Source Files on build 69
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #69
  • 0cdb7e43 on github
  • Prev Build on master (#63)
  • Next Build on master (#70)
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