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

nepalez / rom-cassandra
98%

Build:
DEFAULT BRANCH: master
Repo Added 02 Aug 2015 04:28PM 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 master
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • master

pending completion
45

push

travis-ci

nepalez
[FEATURE] Add counter incrementer and decrementer

In `Update#set` you can provide values for counters: `#increment(i)`,
and `#decrement(i)`:

    class UpdateCounter < ROM::Commands::Update[:cassandra]
      register_as :update_hits
      relation :hits

      def execute(value)
        super set(hits: increment(value)
      end
    end

    # ...
    rom = ROM.finalize.env

    update_hits = rom.command(:update_hits)
    update_hits.by_id(1).call(3)
    # to change { id: 1, hits: 1 } to { id: 1, hits: 4 }

== Added

* ROM::Cassandra::Operators (the namespace for included modules)
* ROM::Cassandra::Operators::Set (helper methods for SET clause)
* ROM::Cassandra::Operators::Set#increment
* ROM::Cassandra::Operators::Set#decrement

== Changed

* ROM::Cassandra::Commands::Update - includes ROM::Cassandra::Operators::Set
  to provide access to `#increment(i)` and `#decrement(i)` helpers.

192 of 196 relevant lines covered (97.96%)

49.18 hits per line

Relevant lines Covered
Build:
Build:
196 RELEVANT LINES 192 COVERED LINES
49.18 HITS PER LINE
Source Files on master
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
45 master [FEATURE] Add counter incrementer and decrementer In `Update#set` you can provide values for counters: `#increment(i)`, and `#decrement(i)`: class UpdateCounter < ROM::Commands::Update[:cassandra] register_as :update_hits relatio... push 09 Aug 2015 06:44PM UTC nepalez travis-ci pending completion  
44 master [INTERNAL] Add 'rbx' to .travis.yml push 09 Aug 2015 12:41PM UTC nepalez travis-ci pending completion  
43 master [INTERNAL] Code refactoring Extracted `Dataset::Helpers` from `Dataset` for code readability. push 09 Aug 2015 10:49AM UTC nepalez travis-ci pending completion  
42 master [FEATURE] Add `Batch` command The command provides batched CQL query. Modifiers `#add` (low-level), `#create`, `#update`, and `#delete` are available. class Batch < ROM::Cassandra::Commands::Batch relation :users register_as :bat... push 09 Aug 2015 08:42AM UTC nepalez travis-ci pending completion  
41 master [INTERNAL] Simplify specs push 08 Aug 2015 11:21AM UTC nepalez travis-ci pending completion  
40 master [INTERNAL] Simplify specs push 08 Aug 2015 11:18AM UTC nepalez travis-ci pending completion  
39 master [FEATURE] Add `Create` command The command inserts a single row into the column family. Modifiers `#insert` and `#using` are available. class CreateName < ROM::Commands::Create[:cassandra] relation :items register_as :create ... push 08 Aug 2015 11:13AM UTC nepalez travis-ci pending completion  
38 master [FEATURE] Add `Update` command The command updates selected records. Dataset modifiers `#set`, `#where` and `#using` are available: class UpdateName < ROM::Commands::Update[:cassandra] relation :items register_as :update_name ... push 08 Aug 2015 10:44AM UTC nepalez travis-ci pending completion  
37 master [FEATURE] Add modifiers to the `Delete` command The command's dataset can be modified locally using commands `#where`, `#using` and `#columns`: class DeleteColumns < ROM::Commands::Delete[:cassandra] relation :tasks register_as :... push 08 Aug 2015 09:56AM UTC nepalez travis-ci pending completion  
36 master [FEATURE] Add modifiers to the `Delete` command The command's dataset can be modified locally using commands `#where`, `#using` and `#columns`: class DeleteColumns < ROM::Commands::Delete[:cassandra] relation :tasks register_as :... push 08 Aug 2015 09:55AM UTC nepalez travis-ci pending completion  
See All Builds (42)
  • 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

© 2026 Coveralls, Inc