jbochi / lua-resty-cassandra

Pure Lua Cassandra client using CQL binary protocol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support BATCH mode

jbochi opened this issue · comments

The only thing that I believe is still missing is statement type:

- <type> is a [byte] indicating the type of batch to use:
    - If <type> == 0, the batch will be "logged". This is equivalent to a
      normal CQL3 batch statement.
    - If <type> == 1, the batch will be "unlogged".
    - If <type> == 2, the batch will be a "counter" batch (and non-counter
      statements will be rejected).

The driver is always using the type==0.

@thibaultcha and @thefosk, since you were interested on this feature, could you please comment?

Thanks to @thibaultcha (dffe2c2), all batch types are now supported.