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
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
>
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
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