Create a PostgreSQL adapter with connection string.
PostgreSQL connection string
const db = createPostgresAdapter('postgresql://user:pass@localhost:5432/mydb'); Copy
const db = createPostgresAdapter('postgresql://user:pass@localhost:5432/mydb');
Create a PostgreSQL adapter with configuration options.
PostgreSQL adapter configuration
const db = createPostgresAdapter({ host: 'db.example.com', database: 'mydb', user: 'dbuser', password: 'secure_password', ssl: true}); Copy
const db = createPostgresAdapter({ host: 'db.example.com', database: 'mydb', user: 'dbuser', password: 'secure_password', ssl: true});
Create a PostgreSQL adapter with connection string.