Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get pending queries length #919

Open
Langsdorf opened this issue Jul 24, 2024 · 0 comments
Open

Get pending queries length #919

Langsdorf opened this issue Jul 24, 2024 · 0 comments

Comments

@Langsdorf
Copy link

How can I get the length of pending queries?

Looking at this file:

const sent = Queue()

I tried to use that sent object but the connections array is not assigned to sql object:

postgres/src/index.js

Lines 65 to 82 in f58cd4f

const connections = [...Array(options.max)].map(() => Connection(options, queues, { onopen, onend, onclose }))
const sql = Sql(handler)
Object.assign(sql, {
get parameters() { return options.parameters },
largeObject: largeObject.bind(null, sql),
subscribe,
CLOSE,
END: CLOSE,
PostgresError,
options,
reserve,
listen,
begin,
close,
end
})

Is there another way to get this information?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant