ApplyInterceptorConnection extension

Extension to wrap a DatabaseConnection with a QueryInterceptor.

on

Methods

interceptWith(QueryInterceptor interceptor) DatabaseConnection
Returns a DatabaseConnection that will use the same stream queries as this, but replaces its executor by wrapping it with the interceptor.