I wish to have connected more than 1 users at the same time, as follows:
const massive = require('massive');
massive({
host: 'localhost',
port: 5432,
database: 'appdb',
user: 'user_1',
password: 'pwd_1',
ssl: false,
poolSize: 10
}).then(instance_1 => {...});
massive({
host: 'localhost',
port: 5432,
database: 'appdb',
user: 'user_2',
password: 'pwd_2',
ssl: false,
poolSize: 10
}).then(instance_2 => {...});
user_1
and user_2
obviously have different privileges.
So, my question is: in which way the two instances 1 and 2 are related?
In the beginning, I suspect they are identical. Later, do they get synchronized? Do I have to run db.reload()
?
Tia