Skip to content

BATCH: Extend driver API: add USING TIMEOUT for BATCH queries #595

@moguchev

Description

@moguchev

According to the ScyllaDB CQL specification, for BATCH queries, you can define a server timeout using the USING TIMEOUT construct:

In Cqlsh we can do this:

BEGIN BATCH USING TIMEOUT 500ms
   INSERT INTO users (userid, password, name) VALUES ('user2', 'ch@ngem3b', 'second user');
   UPDATE users SET password = 'ps22dhds' WHERE userid = 'user3';
   INSERT INTO users (userid, password) VALUES ('user4', 'ch@ngem3c');
   DELETE name FROM users WHERE userid = 'user1';
APPLY BATCH;

But in gocql and gocqlx we can't add any update parameter:

: [ USING `update_parameter` ( AND `update_parameter` )* ]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions