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

lucaong / cubdb
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: writes-since-compaction
DEFAULT BRANCH: master
Repo Added 18 Jul 2019 12:51PM UTC
Files 16
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

LAST BUILD ON BRANCH better_get_multi
branch: better_get_multi
CHANGE BRANCH
x
Reset
  • better_get_multi
  • auto_compact_by_default
  • avoid_crash_if_compaction_crashes
  • better_select_key_ranges_api
  • better_task_handling
  • better_timeouts
  • file_sync_by_default
  • fix_compaction_race_condition
  • master
  • put_new
  • start_link_1
  • v0.11.0
  • v0.12.0
  • v0.13.0
  • v0.13.1
  • v0.14.0
  • v0.15.0
  • v0.16.0
  • v0.16.1
  • v0.16.2
  • v0.16.3
  • v0.16.4
  • v0.17.0
  • v1.0.0-rc.1
  • v1.0.0-rc.2
  • v1.0.0-rc.3
  • v1.0.0-rc.4

pending completion
90

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%)

25876.41 hits per line

Relevant lines Covered
Build:
Build:
489 RELEVANT LINES 485 COVERED LINES
25876.41 HITS PER LINE
Source Files on better_get_multi
  • List 0
  • Changed 10
  • Source Changed 1
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
90 better_get_multi 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 t... Pull #10 11 Feb 2020 04:37PM UTC web-flow travis-ci pending completion  
89 better_get_multi 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 t... push 11 Feb 2020 04:36PM UTC lucaong travis-ci pending completion  
83 better_get_multi 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 t... Pull #10 30 Jan 2020 05:47PM UTC web-flow travis-ci pending completion  
82 better_get_multi 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 t... push 30 Jan 2020 05:45PM UTC lucaong travis-ci pending completion  
See All Builds (719)
  • Repo on GitHub
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