Re: Named Parameters in Prepared Statement

2014-09-22 Thread Alex Popescu
Yes, you can bind parameters by name: ``` INSERT INTO songs (id, title, album, artist) VALUES (:id, :title, :album, :artist) ``` All DataStax drivers for Cassandra support this feature. In Java it looks like // prepare only once PreparedStatememt pstmt = session.prepare("INSERT INTO songs (id, t

Named Parameters in Prepared Statement

2014-09-22 Thread Timmy Turner
Looking through the CQL 3.1 grammar in Cassandra, I found a "':' ident" alternative in the "value" rule (line 961). Is this for binding named parameters in prepared statements? Is this currently supported by any of the drivers or in Cassandra (2.1) itself? Looking at the docs and the current Java