ef-labs / vertx-cassandra

Execute cassandra statements from a vert.x module
39 stars 19 forks source link

Usage example #19

Open IvanZelenskyy opened 8 years ago

IvanZelenskyy commented 8 years ago

Could you provide a usage example of this library? Now it is hard to figure out this not from README nor from tests.

jammm commented 7 years ago

This is an example on Kotlin, should be straightforward to convert to Java:

        var injector : Injector
        var list = mutableListOf<Module>()
        list.add(GuiceCassandraBinder())
        list.add(GuiceVertxBinder(vertx))

        injector = Guice.createInjector(list)
        cassandraSession = injector.getInstance(CassandraSession::class.java)
rahulbhanushali commented 6 years ago

I am new to Kotlin and Vertx both. Can you help with a detailed example on how I can get started using the library?