Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var types = require('cassandra-driver').types,
Uuid = types.Uuid,
TimeUuid = types.TimeUuid,
Integer = types.Integer,
BigDecimal = types.BigDecimal,
InetAddress = types.InetAddress,
LocalDate = types.LocalDate,
LocalTime = types.LocalTime,
Long = types.Long;
/**
* Cast value from Cassandra data type to Waterline type
*
* @param value
* @returns {*}
*/
exports.castFromCassandraToWaterline = function(value) {
var cast = function(value) {
var ret = value;
if (value instanceof Uuid) {
ret = value.toString();