ci Gitter chat

PostgreSQL driver for Deno.

It's still work in progress, but you can take it for a test drive!

deno-postgres is being developed based on excellent work of node-postgres and pq.

To Do:

  • connecting to database
  • password handling:
    • cleartext
    • MD5
  • DSN style connection parameters
  • reading connection parameters from environmental variables
  • termination of connection
  • simple queries (no arguments)
  • parsing Postgres data types to native TS types
  • row description
  • parametrized queries
  • connection pooling
  • parsing error response
  • SSL (waiting for Deno to support TLS)
  • tests, tests, tests


import { Client } from "";

async function main() {
  const client = new Client({
    user: "user",
    database: "test",
    hostname: "localhost",
    port: 5432
  await client.connect();
  const result = await client.query("SELECT * FROM people;");
  await client.end();



Docs are available at

Contributing guidelines

When contributing to repository make sure to:

a) open an issue for what you're working on

b) properly format code using deno fmt

$ deno fmt -- --check


There are substantial parts of this library based on other libraries. They have preserved their individual licenses and copyrights.

Eveything is licensed under the MIT License.

All additional work is copyright 2018 - 2019 — Bartłomiej Iwańczuk — All rights reserved.

Deno Postgres

PostgreSQL driver for Deno

Deno Postgres Info

⭐ Stars 287
🔗 Source Code
🕒 Last Update 9 months ago
🕒 Created 3 years ago
🐞 Open Issues 38
➗ Star-Issue Ratio 8
😎 Author deno-postgres