# Postgres.js - 빠르고 간결한 Node.js용 PostgreSQL 클라이언트

> Clean Markdown view of GeekNews topic #1270. Use the original source for factual precision when an external source URL is present.

## Metadata

- GeekNews HTML: [https://news.hada.io/topic?id=1270](https://news.hada.io/topic?id=1270)
- GeekNews Markdown: [https://news.hada.io/topic/1270.md](https://news.hada.io/topic/1270.md)
- Type: news
- Author: [xguru](https://news.hada.io/@xguru)
- Published: 2020-01-11T09:46:00+09:00
- Updated: 2020-01-11T09:46:00+09:00
- Original source: [github.com](https://github.com/porsager/postgres)
- Points: 4
- Comments: 0

## Topic Body

별도 의존성 없는 1250줄 코드. pg보다 2~5배 빠른 속도.

주요기능에 ES6 Tagged Template String을 사용해서 깔끔한 코드

- 쿼리실행 : sql` ` -> Promise

- Row별처리 : sql` `.stream(fn) -> Promise

- 다이나믹 쿼리 헬퍼 : sql()

- 트랜잭션 : sql.begin(fn) -> Promise , sql.savepoint([name], fn) -> Promise

## Comments



_No public comments on this page._
