• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lucaslorentz / durabletask-extensions / 19704439390

26 Nov 2025 12:55PM UTC coverage: 79.868% (-3.2%) from 83.091%
19704439390

push

github

web-flow
Merge 184da62ca into 7a5a0b9c2

2305 of 2886 relevant lines covered (79.87%)

119.79 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/LLL.DurableTask.EFCore.MySql/StraightJoinCommandInterceptor.cs
1
using System;
2
using System.Data.Common;
3
using System.Threading;
4
using System.Threading.Tasks;
5
using Microsoft.EntityFrameworkCore.Diagnostics;
6

7
namespace LLL.DurableTask.EFCore.MySql;
8

9
public class StraightJoinCommandInterceptor : DbCommandInterceptor
10
{
11
    public override InterceptionResult<DbDataReader> ReaderExecuting(
12
        DbCommand command,
13
        CommandEventData eventData,
14
        InterceptionResult<DbDataReader> result)
15
    {
16
        ManipulateCommand(command);
×
17

18
        return result;
×
19
    }
20

21
    public override ValueTask<InterceptionResult<DbDataReader>> ReaderExecutingAsync(
22
        DbCommand command,
23
        CommandEventData eventData,
24
        InterceptionResult<DbDataReader> result,
25
        CancellationToken cancellationToken = default)
26
    {
27
        ManipulateCommand(command);
×
28

29
        return new ValueTask<InterceptionResult<DbDataReader>>(result);
×
30
    }
31

32
    private static void ManipulateCommand(DbCommand command)
33
    {
34
        if (command.CommandText.Contains("-- STRAIGHT_JOIN", StringComparison.Ordinal))
×
35
        {
36
            command.CommandText = command.CommandText.Replace("SELECT", "SELECT STRAIGHT_JOIN", StringComparison.OrdinalIgnoreCase);
×
37
        }
38
    }
39
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc