Libraries
    Preparing search index...
    • Parameters

      • config: Config<any> & AdditionalClientOptions = {}
      • OptionalclickHouseSettings: ClickHouseSettings
      • OptionalpreQueryCallback: (connection: ClickHouseClient) => Promise<void>

        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.

      Returns Knex<any, unknown[]>