Skip to content

DbClientPg

do- edited this page Jan 7, 2023 · 74 revisions

DbClientPg is a thin wrapper above the native PostgreSQL client designed for using in doix Jobs.

Instances are created by DbPoolPg objects, part of Application. Application developers should never instantiate those objects directly.

Methods

do (sql, params = [])

This asynchronous method executes the given sql with a given params list. Basically it forwards the call to the native client.query returning the same result or throwing the same error.

Clone this wiki locally