apple / swift-cassandra-client

Cassandra client in Swift

Home Page:https://swiftpackageindex.com/apple/swift-cassandra-client/main/documentation/cassandraclient

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request: .array()

samuelmn3 opened this issue · comments

Hi,
I would need .array() feature in order to inject String array with IN clause.
Is there an alternative in the meantime ?

You can see if any of the CassandraSession.query variants suits your needs.

Otherwise, at quick glance, this will require adding .stringArray([String]) (and potentially other types) to Statement.Value. We will need to use cass_collection_append_* to build up a collection then pass it to cass_statement_bind_collection, as shown in the code below (source):

image