Seamless database integration with native drivers for every framework. Get up and running with your data layer in no time.
import { Pool } from 'pg';
const pool = new Pool({
host: 'localhost',
port: 5432,
database: 'mydb',
user: 'user',
password: 'password'
});
(async function() {
const client = await pool.connect();
const result = await client.query('SELECT NOW()');
console.log('Connected:', result.rows[0]);
client.release();
})();