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

lucaslorentz / durabletask-extensions / 6834079100

11 Nov 2023 12:05PM UTC coverage: 82.326%. Remained the same
6834079100

push

github

web-flow
Merge branch 'main' into add-limit-to-purge-with-filter

2357 of 2863 relevant lines covered (82.33%)

139.72 hits per line

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

66.67
/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);
958✔
28

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

32
    private static void ManipulateCommand(DbCommand command)
33
    {
34
        if (command.CommandText.Contains("-- STRAIGHT_JOIN", StringComparison.Ordinal))
958✔
35
        {
36
            command.CommandText = command.CommandText.Replace("SELECT", "SELECT STRAIGHT_JOIN", StringComparison.OrdinalIgnoreCase);
151✔
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