0.5.0
Changed
-
Following Datastax's model and allowing better flexibility with various C* providers, authentication now happens with an AuthProvider table that must be instanciated and passed to a session's options. Example:
local session, err = cassandra.spawn_session { shm = "...", contact_points = {...}, username = "username", password = "password" }
Becomes:
local session, err = cassandra.spawn_session { shm = "...", contact_points = {...}, auth = cassandra.auth.PlainTextProvider("username", "password") }
The
cassandra
module contains AuthProviders incassandra.auth
. OnlyPlainTextProvider
is currently implemented. -
Remove the
set_log_lvl()
function from thecassandra
module.
Added
- Stronger test suite and new specs for SSL and Authentication.