michaelwittig / node-q

Q interfacing with Node.js
MIT License
52 stars 14 forks source link

null for time type #26

Closed ritalg closed 7 years ago

ritalg commented 7 years ago

Hi, I want to insert data from node-q to kdb table. One of the columns in the table is of type time. How can I insert a null (0Nt) value in time column?

michaelwittig commented 7 years ago

you can either use a string like shown here:

con.k("sum 1 2 3", function(err, res) {
    if (err) throw err;
    console.log("result", res); // 6
});

or you can use the typed API as documented here: https://github.com/michaelwittig/node-q#types

if you can share the code you have at the moment this would help

ritalg commented 7 years ago

thanks for you help