If defined, this function will be called before each query
and awaited if it returns a promise.
Could be useful in some cases. For example you want first to check
if the server is not in idle state (for example Clickhouse Cloud have idling options)
and if it is, you want to wake it up before sending the query.
if the function throws an error this error will not be caught and will propagate to the caller.
Therefore the query will not be executed.
If defined, this function will be called before each query and awaited if it returns a promise.
Could be useful in some cases. For example you want first to check if the server is not in idle state (for example Clickhouse Cloud have idling options) and if it is, you want to wake it up before sending the query.
if the function throws an error this error will not be caught and will propagate to the caller. Therefore the query will not be executed.