[erlang-questions] CQErl - How to update map data type

Shobhit Singh shobhitpratap1@REDACTED
Tue Nov 22 22:04:59 CET 2016


Hello All,

I am having hard time coming with the syntax of updating map using cqerl. I
have tried the following till now and it doesn't work

statement = "UPDATE keyspace SET data[?] = :data_value WHERE scope = ?;",
values = [{data,'Key Value'},{data_value, 'Data Value',{scope, 'Scope
Value'}]

What am I doing wrong here?

Also setting ttl does not work

statement = "INSERT INTO data(scope) VALUES(?) USING ttl ?", values =
[{scope, 'Scope Value'},{[ttl], '3650'}]

Anyone, any idea?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20161122/76a92152/attachment.htm>


More information about the erlang-questions mailing list