2024-04-18 01:44:37 +02:00
|
|
|
|
using SqlKata;
|
|
|
|
|
|
using SqlKata.Compilers;
|
|
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
namespace Wino.Services.Extensions;
|
|
|
|
|
|
|
|
|
|
|
|
public static class SqlKataExtensions
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2025-02-16 11:54:23 +01:00
|
|
|
|
private static SqliteCompiler Compiler = new SqliteCompiler();
|
2025-02-16 11:43:30 +01:00
|
|
|
|
|
2025-02-16 11:54:23 +01:00
|
|
|
|
public static string GetRawQuery(this Query query)
|
|
|
|
|
|
{
|
|
|
|
|
|
return Compiler.Compile(query).ToString();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|