withExecutor method
Returns a database connection that is identical to this one, except that
it uses the provided executor
.
Implementation
DatabaseConnection withExecutor(QueryExecutor executor) {
return DatabaseConnection(typeSystem, executor, streamQueries);
}