interceptWith method

DatabaseConnection interceptWith(
  1. QueryInterceptor interceptor
)

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));
}