Attributes
Extremely Popular
Repository
Current version released
4 years ago
Dependencies
Versions
- v0.19.3Latest
- v0.19.2
- v0.19.1
- v0.19.0
- v0.18.1
- v.0.18.1
- v0.18.0
- v0.17.2
- ls
- v0.17.1
- v0.17.0
- v0.16.1
- v0.16.0
- v0.15.0
- v0.14.3
- v0.14.2
- v0.14.1
- v0.14.0
- v0.13.0
- v0.12.0
- v0.11.3
- 0.11.3
- v0.11.2
- v0.11.1
- 0.10.0
- v0.11.0
- v0.10.0
- v0.9.0
- v0.8.0
- v0.7.1
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.6
- v0.4.5
- v0.4.4
- v0.4.3
- v0.4.2
- v0.4.1
- v0.4.0
- v0.3.11
- v0.3.10
- v0.3.9
- v0.3.8
- v0.3.7
- v0.3.6
- v0.3.5
- v0.3.4
- v0.3.3
- v0.3.2
- v0.3.1
- v0.3.0
- v0.2.0
- v0.1.2
- v0.1.1
- v0.1
deno-postgres
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
Example
import { Client } from "https://deno.land/x/postgres/mod.ts";
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;");
console.log(result.rows);
await client.end();
}
main();
Docs
Docs are available at https://deno-postgres.com/
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
License
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.