[nodejs] Problem with global object updating

2016-08-09 Thread karthik reddy singireddy
Hi, I created a file global_var.js as below: module.exports = { some_obj : { } }; I am updating some_obj values frequently in another files by the below process: var globalVar = require(‘./global_var.js’); globalVar.some_obj[“some_key”]=”some value”; but sometime it in not updating or

Re: [nodejs] Problem with global object updating

2016-08-24 Thread karthik reddy singireddy
is to return an with functions so that the > value is modified by the function and read by another. > Something like: > > var object = {someObj: {}} > > module.exports = { > get: function(){ return object; }, > set: function(newValue) { object = newValue; } > } > > Bye >

[nodejs] node mysql problem with into outfile on remote machine

2016-11-23 Thread karthik reddy singireddy
Hi, I have executed below command on windows command terminal mysql -e -h 192.168.1.120 -u root -p catalyst -e 'SELECT * FROM user_info' > E:/myfile.txt If i want to execute the same command on node mysql. Is there any way to use outfile remotely? -- Job board: http://jobs.nodejs.org/ New

[nodejs] postgresql \copy the remote file into local file

2016-12-01 Thread karthik reddy singireddy
Hi I have found two ways for export postgresql to csv using below two commands in windows command terminal: 1) it is to export into remote machine where postgres is running copy (SELECT firstname, lastname FROM emps ORDER BY lastname, firstname) TO 'E:/file_test' CSV HEADER 2) it is to export