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

lucaong / cubdb / 89
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: writes-since-compaction
DEFAULT BRANCH: master
Ran 11 Feb 2020 04:36PM UTC
Jobs 3
Files 14
Run time 57s
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
89

push

travis-ci

lucaong
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}

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

485 of 489 relevant lines covered (99.18%)

26519.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 89.1 (ASSERT_RECEIVE_TIMEOUT=300) 11 Feb 2020 04:36PM UTC 0
99.18
Travis Job 89.1
2 89.2 (ASSERT_RECEIVE_TIMEOUT=300) 11 Feb 2020 04:36PM UTC 0
99.18
Travis Job 89.2
3 89.3 (ASSERT_RECEIVE_TIMEOUT=300) 11 Feb 2020 04:37PM UTC 0
99.18
Travis Job 89.3
Source Files on build 89
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #89
  • b7718c14 on github
  • Prev Build on better_get_multi (#82)
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