static query(options, context) {
        if (typeof options.query === 'function') {
            try {
                options.query(context);
            } catch (e) {
                // throwing an error during event 'query'
                // will result in a reject for the request.
                return e instanceof Error ? e : new npm.utils.InternalError(e);
            }
        }
    }
@event query
@description

Global notification of a query that's about to execute.

Notification happens just before the query execution. And if the handler throws an error, the query execution
will be rejected with that error.

@param {EventContext} e
Event Context Object.

@example

const initOptions = {

    // pg-promise initialization options...

    query(e) {
        console.log('QUERY:', e.query);
    }
};