You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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` )* ]