This will pre-fix and post-fix the given value with the "<>" diamond syntax.
This will pre-fix and post-fix the given value with the "<>" diamond syntax. It is used to define the collection type of a column.
Sample outputs would be:
dimond("list", "int") = list<int> dimond("set", "varchar") = set<varchar>
The name of the collection in use.
The value, usually the type of the CQL collection.
A CQL query serialising the CQL collection column definition syntax.
Creates a set removal query, to remove the given values from the name set column.
Creates a set removal query, to remove the given values from the name set column. Assumes values are already serialised to their CQL form and escaped.
setColumn = setColumn - {`test`, `test2`}
The name of the set column.
The set of values, pre-serialized and escaped.
A CQLQuery set remove query as described above.
Used to generate a query that allows removing one or more keys from a map.
Used to generate a query that allows removing one or more keys from a map. Example:
UPDATE db.table WHERE a = b SET mapColumn -= {"a", "b", "c"}
The name of the map column to remove from.
The keys to remove from the map column.
Creates a set removal query, to remove the given values from the name set column.
Creates a set removal query, to remove the given values from the name set column. Assumes values are already serialised to their CQL form and escaped.
setColumn = setColumn - {`test`, `test2`}
The name of the set column.
The set of values, pre-serialized and escaped.
A CQLQuery set remove query as described above.