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

lucaong / cubdb / 83
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: writes-since-compaction
DEFAULT BRANCH: master
Ran 30 Jan 2020 05:47PM 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
83

Pull #10

travis-ci

web-flow
improve get_multi interface (breaking change)

Before, get_multi/3 was returning a list of value corresponding to the
given keys, or the default value when the key was not in the database.

This API had a number of drawbacks, like the difficulty to distinguish
between a missing key from a key associated to the default value, or the
inconvenience of matching keys to values. Also, it is not consistent
with the argument of the function passed to get_and_update_multi.

The new version solves these problems (at the cost of breaking backward
compatibility) by returning a map of keys to values fro the selected
keys. When a key is not present in the database, it is omitted from the
result map.

Example:

    # Assuming that the database contains a: 1, b: 2, c: nil

    # Before:
    CubDB.get_multi(db, [:a, :b, :c, :x])
    # => [1, 2, nil, nil]

    # Now:
    CubDB.get_multi(db, [:a, :b, :c, :x])
    # => %{a: 1, b: 2, c: nil}
Pull Request #10: Improve get_multi interface (breaking change)

1 of 1 new or added line in 1 file covered. (100.0%)

485 of 489 relevant lines covered (99.18%)

27350.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 83.1 (ASSERT_RECEIVE_TIMEOUT=300) 30 Jan 2020 05:47PM UTC 0
99.18
Travis Job 83.1
2 83.2 (ASSERT_RECEIVE_TIMEOUT=300) 30 Jan 2020 05:47PM UTC 0
99.18
Travis Job 83.2
3 83.3 (ASSERT_RECEIVE_TIMEOUT=300) 30 Jan 2020 05:47PM UTC 0
99.18
Travis Job 83.3
Source Files on build 83
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #83
  • Pull Request #10
  • PR Base - master (#81)
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