Schema safe, type-safe, reactive Scala driver for Cassandra/Datastax Enterprise
Scala Other
Switch branches/tags
v2.16.4 v1.114.1 v1.25.1 v1.25.0 v1.23.1 v1.21.5 v1.21.3 v1.21.2 v1.21.1 v1.21.0 v1.20.0 v1.19.0 v1.18.1 v1.18.0 v1.17.7 v1.17.5 v1.17.3 v1.17.0 v1.16.0 v1.15.0 v1.14.2 v1.14.1 v1.13.0 v1.12.3 v1.12.2 v1.11.0 v1.10.1 v1.1.0 v0.1.5-SNAPSHOT org=com.websudos,name=phantom,version=1.29.8-SNAPSHOT org=com.websudos,name=phantom,version=1.29.7-SNAPSHOT org=com.websudos,name=phantom,version=1.29.6 org=com.websudos,name=phantom,version=1.29.5 org=com.websudos,name=phantom,version=1.29.4 org=com.websudos,name=phantom,version=1.29.3 org=com.websudos,name=phantom,version=1.29.2 org=com.websudos,name=phantom,version=1.29.1 org=com.websudos,name=phantom,version=1.28.16 org=com.websudos,name=phantom,version=1.28.15 org=com.websudos,name=phantom,version=1.28.14 org=com.websudos,name=phantom,version=1.28.13 org=com.websudos,name=phantom,version=1.28.12 org=com.websudos,name=phantom,version=1.28.11 org=com.websudos,name=phantom,version=1.28.10 org=com.websudos,name=phantom,version=1.28.9 org=com.websudos,name=phantom,version=1.28.8 org=com.websudos,name=phantom,version=1.28.7 org=com.websudos,name=phantom,version=1.28.6 org=com.websudos,name=phantom,version=1.28.5 org=com.websudos,name=phantom,version=1.28.4 org=com.websudos,name=phantom,version=1.28.3 org=com.websudos,name=phantom,version=1.28.1 org=com.websudos,name=phantom,version=1.27.1 org=com.websudos,name=phantom,version=1.26.7 org=com.websudos,name=phantom,version=1.26.5 org=com.websudos,name=phantom,version=1.26.4 org=com.websudos,name=phantom,version=1.26.3 org=com.websudos,name=phantom,version=1.26.2 org=com.websudos,name=phantom,version=1.26.0 org=com.websudos,name=phantom,version=1.25.4 org=com.websudos,name=phantom,version=1.9.10 org=com.websudos,name=phantom,version=1.9.9 org=com.websudos,name=phantom,version=1.9.8 org=com.websudos,name=phantom,version=1.9.7 org=com.websudos,name=phantom,version=1.9.6 org=com.outworkers,name=phantom,version=2.16.4 org=com.outworkers,name=phantom,version=2.16.3 org=com.outworkers,name=phantom,version=2.16.2 org=com.outworkers,name=phantom,version=2.16.1 org=com.outworkers,name=phantom,version=2.15.5 org=com.outworkers,name=phantom,version=2.15.4 org=com.outworkers,name=phantom,version=2.15.3 org=com.outworkers,name=phantom,version=2.15.2 org=com.outworkers,name=phantom,version=2.15.1 org=com.outworkers,name=phantom,version=2.15.0 org=com.outworkers,name=phantom,version=2.14.5 org=com.outworkers,name=phantom,version=2.14.4 org=com.outworkers,name=phantom,version=2.14.3 org=com.outworkers,name=phantom,version=2.14.2 org=com.outworkers,name=phantom,version=2.14.1 org=com.outworkers,name=phantom,version=2.14.0 org=com.outworkers,name=phantom,version=2.13.5 org=com.outworkers,name=phantom,version=2.13.4 org=com.outworkers,name=phantom,version=2.13.3 org=com.outworkers,name=phantom,version=2.13.2 org=com.outworkers,name=phantom,version=2.13.1 org=com.outworkers,name=phantom,version=2.13.0 org=com.outworkers,name=phantom,version=2.12.6 org=com.outworkers,name=phantom,version=2.12.5 org=com.outworkers,name=phantom,version=2.12.4 org=com.outworkers,name=phantom,version=2.12.3 org=com.outworkers,name=phantom,version=2.12.2 org=com.outworkers,name=phantom,version=2.12.1 org=com.outworkers,name=phantom,version=2.12.0 org=com.outworkers,name=phantom,version=2.11.2 org=com.outworkers,name=phantom,version=2.11.1 org=com.outworkers,name=phantom,version=2.11.0 org=com.outworkers,name=phantom,version=2.10.0 org=com.outworkers,name=phantom,version=2.9.2 org=com.outworkers,name=phantom,version=2.9.1
Nothing to show
Latest commit 1c50517 Dec 12, 2017 @alexflav23 alexflav23 Feature/debug docs (#788)
* Adding documentation for using debug and compiler flags.

* Adding documentation example.

* Recompiling docs

* Adding more options

* Disabling lazy evaluation

* Fixing some more warnings

* Adding more documentation for oustanding compilation flags.

* Adding better logging

* Adding more info

README.md

phantom Build Status Coverage Status Codacy Rating Maven Central Bintray ScalaDoc Gitter

Reactive type-safe Scala driver for Apache Cassandra/Datastax Enterprise

To stay up-to-date with our latest releases and news, follow us on Twitter: @outworkers.

If you use phantom, please consider adding your company to our list of adopters. Phantom is and will always be open source, but the more adopters our projects have, the more people from our company will actively work to make them better.

phantom

Migrating to phantom 2.14.0 and using execution backends.

Please refer to the new docs on query execution to understand the breaking changes in phantom 2.14.0. They will affect all users of phantom, as we further optimise the internals for better performance and to gently prepare 3.0.

Details here. In short, query generation is no longer coupled with query execution within the framework. That means phantom can natively support different kind of concurrency frameworks in parallel, using different sub-modules. That includes Monix, Twitter Util, Scala Futures, and a few others, some of which only available via phantom-pro.

import com.outworkers.phantom.dsl._ is now required in more places than before. The future method is no longer implementation by query classes, but rather added via implicit augmentation by QueryContext. The return type of the future method is now dependent on which QueryContext you use, so that's why importing is required, without it the necessary implicits will not be in scope by default, or similarly, in some places new implicits are required to specify things specific to an execution backend.

Migrating to phantom 2.x.x series

The new series of phantom introduces several key backwards incompatible changes with previous versions. This was done to obtain massive performance boosts and to thoroughly improve user experience with phantom.

Read the MIGRATION GUIDE for more information on how to upgrade.

Available modules

This is a table of the available modules for the various Scala versions. Not all modules are available for all versions just yet, and this is because certain dependencies have yet to be published for Scala 2.12.

Phantom OSS

Module name Scala 2.10.x Scala 2.11.x Scala 2.12.0
phantom-connectors yes yes yes
phantom-dsl yes yes yes
phantom-jdk8 yes yes yes
phantom-sbt yes no no
phantom-example yes yes yes
phantom-thrift yes yes yes
phantom-finagle yes yes yes
phantom-streams yes yes yes

Phantom Pro subscription edition

Modules marked with "x" are still in beta or pre-publishing mode.

Module name Scala 2.10.x Scala 2.11.x Scala 2.12.x Release date
phantom-dse yes yes yes Released
phantom-udt yes yes yes Released
phantom-autotables x x x Released
phantom-monix x x x Released
phantom-docker x x x Released
phantom-graph x x x April 2017
phantom-spark x x x July 2017
phantom-solr x x x July 2017
phantom-migrations x x x September 2017
phantom-native x x x December 2017
phantom-java-dsl x x x December 2017

Using phantom

Scala 2.10, 2.11 and 2.12 releases

We publish phantom in 2 formats, stable releases and bleeding edge.

  • The stable release is always available on Maven Central and will be indicated by the badge at the top of this readme. The Maven Central badge is pointing at the latest version

  • Intermediary releases are available through our Bintray repo available at Resolver.bintrayRepo("outworkers", "oss-releases") or https://dl.bintray.com/outworkers/oss-releases/. The latest version available on our Bintray repository is indicated by the Bintray badge at the top of this readme.

How phantom compares

To compare phantom to similar tools in the Scala/Cassandra category, you can read more here.

Latest versions

The latest versions are available here. The badges automatically update when a new version is released.

  • Latest stable version: Maven Central (Maven Central)
  • Bleeding edge: Bintray (OSS releases on Bintray)

Tutorials on phantom and Cassandra

For ease of use and far better management of documentation, we have decided to export the README.md to a compiled documentation page, now available here.

The following are the current resources available for learning phantom, outside of tests which are very useful in highlighting all the possible features in phantom and how to use them.

This is a list of resources to help you learn phantom and Cassandra:

Issues and questions

back to top

We love Cassandra to bits and use it in every bit of our stack. phantom makes it super trivial for Scala users to embrace Cassandra.

Cassandra is highly scalable and it is by far the most powerful database technology available, open source or otherwise.

Phantom is built on top of the Datastax Java Driver, which handles Cassandra connectivity and raw query execution.

We are very happy to help implement missing features in phantom, answer questions about phantom, and occasionally help you out with Cassandra questions! Please use GitHub for any issues or bug reports.

Adopters

Here are a few of the biggest phantom adopters, though the full list is far more comprehensive.

Microsoft CreditSuisse ING UBS Wincor Nixdorf Paddy Power Strava Equens Pellucid Analytics Anomaly42 ChartBoost Tecsisa Mobli VictorOps Socrata Sphonic

License and copyright

Phantom is distributed under the Apache V2 License.

  • Outworkers, Limited is the copyright holder.

  • You can use phantom in commercial products or otherwise.

  • We strongly appreciate and encourage contributions.

  • All paid for features are published and sold separately as phantom-pro, everything that is currently available for free will remain so forever.

If you would like our help with any new content or initiatives, we'd love to hear about it!

Contributors

back to top

Phantom was developed at outworkers as an in-house project. All Cassandra integration at outworkers goes through phantom, and nowadays it's safe to say most Scala/Cassandra users in the world rely on phantom.

Copyright

back to top

Special thanks to Viktor Taranenko from WhiskLabs, who gave us the original idea, and special thanks to Miles Sabin and team behind Shapeless, where we shamelessly stole all the good patterns from.

Copyright © 2013 - 2017 outworkers.

Contributing to phantom

back to top

Contributions are most welcome! Use GitHub for issues and pull requests and we will happily help out in any way we can!