A helper that I created for node-cassandra-client earlier on in the year.