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

nepalez / rom-cassandra / 39
98%

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

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

46.03 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
100.0
lib/rom/cassandra/dataset.rb
Jobs
ID Job ID Ran Files Coverage
1 39.1 (1.9.3) 08 Aug 2015 11:14AM UTC 0
97.3
Travis Job 39.1
2 39.2 (2.0) 08 Aug 2015 11:13AM UTC 0
97.3
Travis Job 39.2
3 39.3 (2.1) 08 Aug 2015 11:13AM UTC 0
97.3
Travis Job 39.3
4 39.4 (2.2) 08 Aug 2015 11:13AM UTC 0
97.3
Travis Job 39.4
5 39.5 (ruby-head) 08 Aug 2015 11:14AM UTC 0
97.3
Travis Job 39.5
Source Files on build 39
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #39
  • fa559110 on github
  • Prev Build on master (#38)
  • Next Build on master (#40)
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