Socket
Socket
Sign inDemoInstall

helenus

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

helenus - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

5

History.md

@@ -131,1 +131,6 @@

* Add better CQL escaping and parameterization [ @devdazed #36, #39 ]
0.5.1 / 2012-05-02
==================
* Set column timestamps in microseconds

3

lib/column_family.js

@@ -122,2 +122,3 @@ var util = require('util'),

ts = new Date();
for(; i < len; i += 1){

@@ -256,3 +257,3 @@ key = keys[i];

this.connection.execute('remove', marshalledKey, path, timestamp, consistency, args.callback);
this.connection.execute('remove', marshalledKey, path, timestamp * 1000, consistency, args.callback);
};

@@ -259,0 +260,0 @@

@@ -17,3 +17,3 @@ var util = require('util'),

this.name = name;
/**

@@ -23,3 +23,3 @@ * The value of the column

this.value = value;
/**

@@ -30,3 +30,3 @@ * The timestamp of the value

this.timestamp = timestamp || new Date();
/**

@@ -48,3 +48,3 @@ * The ttl for the column

value: valueMarshaller.serialize(this.value),
timestamp: this.timestamp.getTime(),
timestamp: this.timestamp.getTime() * 1000,
ttl:this.ttl

@@ -51,0 +51,0 @@ });

@@ -44,3 +44,3 @@ var util = require('util'),

if(item.name !== 'KEY'){
this.push(new Column(name,deserializeValue(item.value), new Date(item.timestamp), item.ttl));
this.push(new Column(name,deserializeValue(item.value), new Date(item.timestamp / 1000), item.ttl));
this._map[name] = i;

@@ -47,0 +47,0 @@ }

{
"name": "helenus"
, "version": "0.5.0"
, "version": "0.5.1"
, "description": "NodeJS Bindings for Cassandra"

@@ -5,0 +5,0 @@ , "keywords": ["cassandra"]

@@ -61,3 +61,3 @@

pool.cql("SELECT '%s' FROM '%s' WHERE key='%s'", ['col','cf_one','key123'], function(err, results){
pool.cql("SELECT '%s' FROM cf_one WHERE key='%s'", ['col','key123'], function(err, results){
console.log(err, results);

@@ -67,3 +67,5 @@ });

//NOTE:
//you can also use the ? as a placeholder. eg: "SELECT ? FROM '?' WHERE key='?'"
//- You can also use ? as a placeholder. eg: "SELECT ? FROM cf_one WHERE key = ?"
//- You can always skip quotes around placeholders, they are added automatically.
//- You cannot use placeholders for ColumnFamily names.
}

@@ -70,0 +72,0 @@ });

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc