Provide support for phantom-dsl
See original GitHub issueInstead of writing CQL queries in lagom projects it would be nice if we could use phantom-dsl (see https://github.com/outworkers/phantom) and use the lagom infrastructure for the Cassandra session management.
The benefits: The dsl provides a type safe way on querying and writing into the Cassandra database, for example:
case class DomainObject(id: UUID, description: String)
abstract class DomainObjects extends Table[DomainObjects, DomainObject] {
object id extends UUIDColumn with PartitionKey
object description extends StringColumn
def getById(id: UUID): Future[Option[DomainObject]] = {
select.where(_.id eqs id).one()
}
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Frequently Asked Questions (FAQ) - PhantomJS
A: Binary packages, executables, and installer are provided on a volunteer ... A: If you want to know HTML5/CSS3/other features supported by PhantomJS, ......
Read more >Command Line Interface - PhantomJS
Supported command-line options are: --help or -h lists all possible command-line options. ... --local-storage-quota=number maximum size to allow for data.
Read more >Supported Web Standards - PhantomJS
PhantomJS uses QtWebKit. It supports many features which are part of http://trac.webkit.org/wiki/QtWebKitFeatures22. Unsupported Features. Support for plugins ( ...
Read more >Troubleshooting - PhantomJS
All examples are designed to work with the latest version of PhantomJS. If some examples do not work, make sure that there is...
Read more >Related Projects - PhantomJS
Also provides additional stack tracing, helpers and module bootstrapping. ... screenshot-as-a-service (Node.js); screenshot-service a pure phantomJS project ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
quill-cassandra-lagom
is released! AddlibraryDependencies += "io.getquill" %% "quill-cassandra-lagom" % "3.1.0"
to yourbuild.sbt
, then create a context in your application definition:It will reuse Lagom’s cassandra session automatically. Then you can use it in quill way in your code:
If you are using
CassandraLagomAsyncContext
, result will beFuture[List[AnalysisEvent]]
; ifCassandraLagomStreamContext
, result will beSource[AnalysisEvent, NotUsed]
.@ihostage I’m communicating with them. If they don’t accept, I’ll create my own project.
Luckily one of quill’s maintainers @jilen is Chinese. I can talk to him directly in native language.