interceptWith method
Returns a DatabaseConnection that will use the same stream queries as
this
, but replaces its executor by wrapping it with the interceptor
.
See also: ApplyInterceptor.interceptWith.
Implementation
DatabaseConnection interceptWith(QueryInterceptor interceptor) {
return withExecutor(executor.interceptWith(interceptor));
}