All Projects → denodrivers → Postgres

denodrivers / Postgres

Licence: mit
PostgreSQL driver for Deno

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Postgres

Pg chameleon
MySQL to PostgreSQL replica system
Stars: ✭ 274 (-22.16%)
Mutual labels:  postgresql, postgres
Postgresql cluster
PostgreSQL High-Availability Cluster (based on "Patroni" and "DCS(etcd)"). Automating deployment with Ansible.
Stars: ✭ 294 (-16.48%)
Mutual labels:  postgresql, postgres
Dbq
Zero boilerplate database operations for Go
Stars: ✭ 273 (-22.44%)
Mutual labels:  postgresql, postgres
Rpostgres
A DBI-compliant interface to PostgreSQL
Stars: ✭ 245 (-30.4%)
Mutual labels:  postgresql, postgres
Epgsql
Erlang PostgreSQL client library.
Stars: ✭ 336 (-4.55%)
Mutual labels:  postgresql, postgres
Wasmer Postgres
💽🕸 Postgres library to run WebAssembly binaries.
Stars: ✭ 245 (-30.4%)
Mutual labels:  postgresql, postgres
Pg party
ActiveRecord PostgreSQL Partitioning
Stars: ✭ 294 (-16.48%)
Mutual labels:  postgresql, postgres
Sqliterally
Lightweight SQL query builder
Stars: ✭ 231 (-34.37%)
Mutual labels:  postgresql, postgres
Graphql Starter
💥 Monorepo template (seed project) pre-configured with GraphQL API, PostgreSQL, React, Relay, and Material UI.
Stars: ✭ 3,377 (+859.38%)
Mutual labels:  postgresql, postgres
Yiigo
🔥 Go 轻量级开发通用库 🚀🚀🚀
Stars: ✭ 304 (-13.64%)
Mutual labels:  postgresql, postgres
Sql Lint
An SQL linter
Stars: ✭ 243 (-30.97%)
Mutual labels:  postgresql, postgres
Wal E
Continuous Archiving for Postgres
Stars: ✭ 3,313 (+841.19%)
Mutual labels:  postgresql, postgres
Prest
PostgreSQL ➕ REST, low-code, simplify and accelerate development, ⚡ instant, realtime, high-performance on any Postgres application, existing or new
Stars: ✭ 3,023 (+758.81%)
Mutual labels:  postgresql, postgres
Postgui
A React web application to query and share any PostgreSQL database.
Stars: ✭ 260 (-26.14%)
Mutual labels:  postgresql, postgres
Massive Js
A data mapper for Node.js and PostgreSQL.
Stars: ✭ 2,521 (+616.19%)
Mutual labels:  postgresql, postgres
Paf
PostgreSQL Automatic Failover: High-Availibility for Postgres, based on Pacemaker and Corosync.
Stars: ✭ 288 (-18.18%)
Mutual labels:  postgresql, postgres
Spring Boot Postgresql Jpa Hibernate Rest Api Demo
Building RESTful APIs with Spring Boot, PostgreSQL, JPA and Hibernate
Stars: ✭ 209 (-40.62%)
Mutual labels:  postgresql, postgres
Activerecord Postgres enum
Integrate PostgreSQL's enum data type into ActiveRecord's schema and migrations.
Stars: ✭ 227 (-35.51%)
Mutual labels:  postgresql, postgres
Loukoum
A simple SQL Query Builder
Stars: ✭ 305 (-13.35%)
Mutual labels:  postgresql, postgres
Ansible Role Postgresql
Ansible Role - PostgreSQL
Stars: ✭ 310 (-11.93%)
Mutual labels:  postgresql, postgres

deno-postgres

Build Status Discord server Manual Documentation License

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.

Example

// deno run --allow-net --allow-read --unstable mod.ts
import { Client } from "https://deno.land/x/postgres/mod.ts";

const client = new Client({
  user: "user",
  database: "test",
  hostname: "localhost",
  port: 5432,
});
await client.connect();

{
  const result = await client.queryArray("SELECT ID, NAME FROM PEOPLE");
  console.log(result.rows); // [[1, 'Carlos'], [2, 'John'], ...]
}

{
  const result = await client.queryArray
    `SELECT ID, NAME FROM PEOPLE WHERE ID = ${1}`;
  console.log(result.rows); // [[1, 'Carlos']]
}

{
  const result = await client.queryObject("SELECT ID, NAME FROM PEOPLE");
  console.log(result.rows); // [{id: 1, name: 'Carlos'}, {id: 2, name: 'Johnru'}, ...]
}

{
  const result = await client.queryObject
    `SELECT ID, NAME FROM PEOPLE WHERE ID = ${1}`;
  console.log(result.rows); // [{id: 1, name: 'Carlos'}]
}

await client.end();

Why do I need unstable to connect using TLS?

Sadly, stablishing a TLS connection in the way Postgres requires it isn't possible without the Deno.startTls API, which is currently marked as unstable. This is a situation that will be solved once this API is stabilized, however I don't have an estimated time of when that might happen.

Docs

Docs are available at https://deno-postgres.com/

Contributing guidelines

When contributing to repository make sure to:

  1. All features and fixes must have an open issue in order to be discussed
  2. All public interfaces must be typed and have a corresponding JS block explaining their usage
  3. All code must pass the format and lint checks enforced by deno fmt and deno lint respectively

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 - 2021 — Bartłomiej Iwańczuk and Steven Guerrero — All rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].