Skip to content

0.5.0

Compare
Choose a tag to compare
@thibaultcha thibaultcha released this 03 Feb 09:23
· 304 commits to master since this release
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 in cassandra.auth. Only PlainTextProvider is currently implemented.

  • Remove the set_log_lvl() function from the cassandra module.

Added
  • Stronger test suite and new specs for SSL and Authentication.