How to connect the postgresql database server using in extendscript?
Hi,
I need to connect the postgresql database server via extendscript javascript. So I tried with the following code. But error thrown like 'require is not a function'. So please suggests if any ideas.
var pg= require('pg');
var connection = pg.createConnection({
host: '', port: '', user: 'test',
password : 'test', database : 'test'
});
connection.connect();
var queryString = "SELECT * FROM 'ExtendScriptTest'";
connection.end();
Thanks,
Latha
I need to connect the postgresql database server via extendscript javascript. So I tried with the following code. But error thrown like 'require is not a function'. So please suggests if any ideas.
