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

nepalez / rom-cassandra / 39 / 2
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 08 Aug 2015 11:13AM UTC
Files 13
Run time 0s
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

08 Aug 2015 11:12AM UTC coverage: 97.297% (+0.2%) from 97.126%
2.0

push

travis-ci

nepalez
[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

      def execture(id, name)
        super insert(id: id, name: name).using(consistency: :quorum)
      end
    end

    create = rom.command(:users).create
    create.call(1, "Andrew")

Notice the `Dataset#insert` prepares data for the new row, while `Dataset#create`
executes the CQL query.

== Added

* ROM::Cassandra::Commands::Create
* ROM::Cassandra::Dataset#insert

== Changed

* ROM::Cassandra::Dataset#create (accepts only :data and :using options)

180 of 185 relevant lines covered (97.3%)

9.21 hits per line

Source Files on job 39.2 (2.0)
  • Tree
  • List 0
  • Changed 4
  • Source Changed 2
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 39
  • Travis Job 39.2
  • fa559110 on github
  • Prev Job for 2.0 on master (#38.2)
  • Next Job for 2.0 on master (#40.2)
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