pino-postgres
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -91,2 +91,3 @@ #! /usr/bin/env node | ||
.option('--buffer-size <number>', 'max number of log entries in buffer', parseNumber, 1000) | ||
.option('--max-connections <number>', 'max number of connections', parseNumber, 3) | ||
.option('--ssl', 'use ssl', false) | ||
@@ -98,6 +99,4 @@ .option('--debug', 'debug postgres client', false) | ||
console.log('opts: ', opts); | ||
const postgresOpts = { | ||
max: 3 | ||
max: opts.maxConnections | ||
} | ||
@@ -104,0 +103,0 @@ if (opts.ssl) { |
{ | ||
"name": "pino-postgres", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "Pino transport for Postgres", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -17,15 +17,16 @@ <h1 align="center">Welcome to pino-postgres 👋</h1> | ||
Options: | ||
-V, --version output the version number | ||
--connection <connection> postgres connection string | ||
--table <name> table name (default: "logs") | ||
--schema <name> schema name (default: "public") | ||
--content-column <name> content column name (default: "content") | ||
--time-column <name> time column name (default: "time") | ||
--time-field <name> time field name (default: "time") | ||
--flush-interval <number> interval at which logs are flushed in ms (default: 5000) | ||
--buffer-size <number> max number of log entries in buffer (default: 1000) | ||
--ssl use ssl (default: false) | ||
--debug debug postgres client (default: false) | ||
--pass-through pass logs through (default: false) | ||
-h, --help display help for command | ||
-V, --version output the version number | ||
--connection <connection> postgres connection string | ||
--table <name> table name (default: "logs") | ||
--schema <name> schema name (default: "public") | ||
--content-column <name> content column name (default: "content") | ||
--time-column <name> time column name (default: "time") | ||
--time-field <name> time field name (default: "time") | ||
--flush-interval <number> interval at which logs are flushed in ms (default: 5000) | ||
--buffer-size <number> max number of log entries in buffer (default: 1000) | ||
--max-connections <number> max number of connections (default: 3) | ||
--ssl use ssl (default: false) | ||
--debug debug postgres client (default: false) | ||
--pass-through pass logs through (default: false) | ||
-h, --help display help for command | ||
``` | ||
@@ -32,0 +33,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7733
48