Cql hello world

Hello, there seems to be no example for a cql hello world (Cassandra 4).

I have only found that there is a protocol Database.CQL.Protocol that seems to be used as a document for this library.

I would like to know how to proceed to make Haskell connect to Cassandra and perform a WRITE query and a READ query.

Is there a reason you aren’t using the cql-io package? The cql package is pretty low level and not ideal for application developers or hello world.

1 Like

I am new, so I just looked for a Cassandra CQL package and cql package showed first. It is okey to use cql-io if this is better suited.

Do check the “DLs” and “Rating” columns on Hackage. There you’ll see that cql-io is used a lot more than cql and it has a higher rating. And watch out for old packages, e.g. in Hackage also lists cassandra-cql which does have the highest rating, but that was last updated in 2015, so it might not even compile properly with the latest versions of GHC. So, I think the number of downloads are more important than the rating.

4 Likes