pg-logged

1.0.1 • Public • Published

pg-logged

Log pg queries.

Usage

import pg from 'pg';
import pgLog from 'pg-logged';

// defaults to console.log
pgLog(pg);

// or custom logger

pgLog(pg, ({ sql, query, replacements }) => console.log(sql, query, replacements));

Readme

Keywords

none

Package Sidebar

Install

npm i pg-logged

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

1.57 kB

Total Files

5

Last publish

Collaborators

  • damianobarbati