Můžete nastavit statement_timeout
v klientovi:
const { Client } = require('pg')
const client = new Client({
statement_timeout: 10000
})
nebo v bazénu:
const { Pool } = require('pg')
const pool = new Pool({
statement_timeout: 10000
})
Můžete nastavit statement_timeout
v klientovi:
const { Client } = require('pg')
const client = new Client({
statement_timeout: 10000
})
nebo v bazénu:
const { Pool } = require('pg')
const pool = new Pool({
statement_timeout: 10000
})