How can I pass dict and query parameters?
I can do such code.
prepared = session.prepare('select name from task where id = ?;')
bound = prepared.bind([1])
session.execute(bound)
How can I use dict as parameters and what will be query syntax?
This not works:
prepared = session.prepare('select name from task where id = %(id)s;')
bound = prepared.bind({"id": 1})
session.execute(bound)
Can you help with this basic code - it looks that it is possible but I do not know valid query syntax?