diff --git a/Elsa.sln b/Elsa.sln
index da59e9a5ae..6e9135689c 100644
--- a/Elsa.sln
+++ b/Elsa.sln
@@ -76,14 +76,14 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docker", "docker", "{986E5482-0482-448C-B9E4-EC67A9474B85}"
ProjectSection(SolutionItems) = preProject
docker\.dockerignore = docker\.dockerignore
+ docker\docker-compose-datadog+otel-collector.yml = docker\docker-compose-datadog+otel-collector.yml
docker\docker-compose.yml = docker\docker-compose.yml
docker\ElsaServer-Datadog.Dockerfile = docker\ElsaServer-Datadog.Dockerfile
docker\ElsaServer.Dockerfile = docker\ElsaServer.Dockerfile
docker\ElsaServerAndStudio.Dockerfile = docker\ElsaServerAndStudio.Dockerfile
docker\ElsaStudio.Dockerfile = docker\ElsaStudio.Dockerfile
- docker\otel-collector-config.yaml = docker\otel-collector-config.yaml
docker\init-db-postgres.sh = docker\init-db-postgres.sh
- docker\docker-compose-datadog+otel-collector.yml = docker\docker-compose-datadog+otel-collector.yml
+ docker\otel-collector-config.yaml = docker\otel-collector-config.yaml
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elsa.Elasticsearch", "src\modules\Elsa.Elasticsearch\Elsa.Elasticsearch.csproj", "{3246883E-2FA7-4B4A-BDC5-99039A2869BC}"
@@ -310,18 +310,18 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "migrations", "migrations",
scripts\migrations\efcore-3.1.sh = scripts\migrations\efcore-3.1.sh
scripts\migrations\efcore-3.2.sh = scripts\migrations\efcore-3.2.sh
scripts\migrations\efcore-3.3.sh = scripts\migrations\efcore-3.3.sh
- scripts\migrations\README.md = scripts\migrations\README.md
scripts\migrations\efcore-3.4.sh = scripts\migrations\efcore-3.4.sh
scripts\migrations\efcore-3.5.sh = scripts\migrations\efcore-3.5.sh
+ scripts\migrations\README.md = scripts\migrations\README.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docker", "docker", "{AA5ACF15-8647-4AC9-B9F5-73FCB92BE7E3}"
ProjectSection(SolutionItems) = preProject
scripts\docker\build-and-run-all-in-one-web-docker.sh = scripts\docker\build-and-run-all-in-one-web-docker.sh
- scripts\docker\docker-compose.yml = scripts\docker\docker-compose.yml
- scripts\docker\docker-run-all-in-one-web.ps1 = scripts\docker\docker-run-all-in-one-web.ps1
scripts\docker\docker-compose-citus.yml = scripts\docker\docker-compose-citus.yml
scripts\docker\docker-compose-yugabyte.yml = scripts\docker\docker-compose-yugabyte.yml
+ scripts\docker\docker-compose.yml = scripts\docker\docker-compose.yml
+ scripts\docker\docker-run-all-in-one-web.ps1 = scripts\docker\docker-run-all-in-one-web.ps1
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "elsa-studio", "elsa-studio", "{DFFE6199-B5A7-4BA8-A5E1-77D0426C6468}"
@@ -350,18 +350,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Elsa.Tenants.AspNetCore", "
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elsa.Kafka", "src\modules\Elsa.Kafka\Elsa.Kafka.csproj", "{BF934627-F531-44FB-BEC2-ECA801FF31E7}"
EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "sql", "sql", "{A0DC5F8E-5D7F-4E8A-A5DF-B1FC31F7336E}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elsa.Sql", "src\modules\Elsa.Sql\Elsa.Sql.csproj", "{FD3CD5A8-E9B3-467F-90EB-2B7D5B83F348}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elsa.Sql.MySql", "src\modules\Elsa.Sql.MySql\Elsa.Sql.MySql.csproj", "{3BED411B-79B5-4CCC-BD46-9549A427B908}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elsa.Sql.PostgreSql", "src\modules\Elsa.Sql.PostgreSql\Elsa.Sql.PostgreSql.csproj", "{6CC5FBC7-D3D7-4FE3-AD08-C67939BDB24D}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elsa.Sql.Sqlite", "src\modules\Elsa.Sql.Sqlite\Elsa.Sql.Sqlite.csproj", "{FA5E857F-B173-4B5D-8049-B817A210DEF5}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elsa.Sql.SqlServer", "src\modules\Elsa.Sql.SqlServer\Elsa.Sql.SqlServer.csproj", "{A51F9683-DA9F-45E7-82DE-1E261ACD6D68}"
-EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "oracle-setup", "oracle-setup", "{66E2E2CF-967F-4564-89E8-F46FA973C99B}"
ProjectSection(SolutionItems) = preProject
docker\oracle-setup\setup.sql = docker\oracle-setup\setup.sql
@@ -385,9 +373,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "adr", "adr", "{0A04B1FD-06C
ProjectSection(SolutionItems) = preProject
doc\adr\0001-record-architecture-decisions.md = doc\adr\0001-record-architecture-decisions.md
doc\adr\0002-fault-propagation-from-child-to-parent-activities.md = doc\adr\0002-fault-propagation-from-child-to-parent-activities.md
- doc\adr\toc.md = doc\adr\toc.md
- doc\adr\graph.dot = doc\adr\graph.dot
doc\adr\0003-direct-bookmark-management-in-workflowexecutioncontext.md = doc\adr\0003-direct-bookmark-management-in-workflowexecutioncontext.md
+ doc\adr\graph.dot = doc\adr\graph.dot
+ doc\adr\toc.md = doc\adr\toc.md
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "bounty", "bounty", "{9B80A705-2E31-4012-964A-83963DCDB384}"
@@ -777,26 +765,6 @@ Global
{BF934627-F531-44FB-BEC2-ECA801FF31E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF934627-F531-44FB-BEC2-ECA801FF31E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF934627-F531-44FB-BEC2-ECA801FF31E7}.Release|Any CPU.Build.0 = Release|Any CPU
- {FD3CD5A8-E9B3-467F-90EB-2B7D5B83F348}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FD3CD5A8-E9B3-467F-90EB-2B7D5B83F348}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FD3CD5A8-E9B3-467F-90EB-2B7D5B83F348}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FD3CD5A8-E9B3-467F-90EB-2B7D5B83F348}.Release|Any CPU.Build.0 = Release|Any CPU
- {3BED411B-79B5-4CCC-BD46-9549A427B908}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {3BED411B-79B5-4CCC-BD46-9549A427B908}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {3BED411B-79B5-4CCC-BD46-9549A427B908}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {3BED411B-79B5-4CCC-BD46-9549A427B908}.Release|Any CPU.Build.0 = Release|Any CPU
- {6CC5FBC7-D3D7-4FE3-AD08-C67939BDB24D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {6CC5FBC7-D3D7-4FE3-AD08-C67939BDB24D}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {6CC5FBC7-D3D7-4FE3-AD08-C67939BDB24D}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {6CC5FBC7-D3D7-4FE3-AD08-C67939BDB24D}.Release|Any CPU.Build.0 = Release|Any CPU
- {FA5E857F-B173-4B5D-8049-B817A210DEF5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {FA5E857F-B173-4B5D-8049-B817A210DEF5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {FA5E857F-B173-4B5D-8049-B817A210DEF5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {FA5E857F-B173-4B5D-8049-B817A210DEF5}.Release|Any CPU.Build.0 = Release|Any CPU
- {A51F9683-DA9F-45E7-82DE-1E261ACD6D68}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {A51F9683-DA9F-45E7-82DE-1E261ACD6D68}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {A51F9683-DA9F-45E7-82DE-1E261ACD6D68}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {A51F9683-DA9F-45E7-82DE-1E261ACD6D68}.Release|Any CPU.Build.0 = Release|Any CPU
{75E08B0E-A41A-425C-9DCA-155505CE41CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{75E08B0E-A41A-425C-9DCA-155505CE41CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{75E08B0E-A41A-425C-9DCA-155505CE41CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -842,6 +810,7 @@ Global
{C9539BD8-D2AE-4A8D-8281-71A05B3FBF31} = {B08B4E00-C2AB-48F3-8389-449F42AEF179}
{169E2C9B-6687-427F-A278-30BF849BFEDC} = {B08B4E00-C2AB-48F3-8389-449F42AEF179}
{2DD5D66B-85E9-4AF9-911C-C9F963234159} = {B08B4E00-C2AB-48F3-8389-449F42AEF179}
+ {8A050229-DB79-4E0B-9AFF-7565E87F2954} = {B08B4E00-C2AB-48F3-8389-449F42AEF179}
{C237BA1A-3A7D-4AB2-BE09-2696F3C082A4} = {C6658DE0-2B2F-47F0-BB61-2CA66D435C09}
{80529478-A383-4FEA-B744-C71264969E9A} = {6EF07978-A6D2-40EB-891D-7D70C5F37E76}
{39CD855E-83B1-4A96-93F7-01608211EBE3} = {C6658DE0-2B2F-47F0-BB61-2CA66D435C09}
@@ -949,12 +918,6 @@ Global
{2F3E1026-5054-4E1F-899B-F1A7F70F9912} = {5BA4A8FA-F7F4-45B3-AEC8-8886D35AAC79}
{D5720DBC-8C2B-42D5-9D9F-2FF6EAD4001C} = {2F3E1026-5054-4E1F-899B-F1A7F70F9912}
{BF934627-F531-44FB-BEC2-ECA801FF31E7} = {DD089B8B-DA73-492A-9010-F772D1C178DA}
- {A0DC5F8E-5D7F-4E8A-A5DF-B1FC31F7336E} = {5BA4A8FA-F7F4-45B3-AEC8-8886D35AAC79}
- {FD3CD5A8-E9B3-467F-90EB-2B7D5B83F348} = {A0DC5F8E-5D7F-4E8A-A5DF-B1FC31F7336E}
- {3BED411B-79B5-4CCC-BD46-9549A427B908} = {A0DC5F8E-5D7F-4E8A-A5DF-B1FC31F7336E}
- {6CC5FBC7-D3D7-4FE3-AD08-C67939BDB24D} = {A0DC5F8E-5D7F-4E8A-A5DF-B1FC31F7336E}
- {FA5E857F-B173-4B5D-8049-B817A210DEF5} = {A0DC5F8E-5D7F-4E8A-A5DF-B1FC31F7336E}
- {A51F9683-DA9F-45E7-82DE-1E261ACD6D68} = {A0DC5F8E-5D7F-4E8A-A5DF-B1FC31F7336E}
{66E2E2CF-967F-4564-89E8-F46FA973C99B} = {986E5482-0482-448C-B9E4-EC67A9474B85}
{9DF81143-2F39-4CFB-9DA3-902279010622} = {5BA4A8FA-F7F4-45B3-AEC8-8886D35AAC79}
{75E08B0E-A41A-425C-9DCA-155505CE41CD} = {9DF81143-2F39-4CFB-9DA3-902279010622}
@@ -963,7 +926,6 @@ Global
{FA2B2B44-7E3E-444B-A157-7526B376E9CA} = {9DF81143-2F39-4CFB-9DA3-902279010622}
{DF0CA7E2-F5DF-40ED-91B6-748767084FC7} = {9DF81143-2F39-4CFB-9DA3-902279010622}
{DB20B168-CD90-41F2-BE08-3D8C6F142459} = {9DF81143-2F39-4CFB-9DA3-902279010622}
- {8A050229-DB79-4E0B-9AFF-7565E87F2954} = {B08B4E00-C2AB-48F3-8389-449F42AEF179}
{0A04B1FD-06C0-4271-A910-A08C263DBC44} = {0354F050-3992-4DD4-B0EE-5FBA04AC72B6}
{9B80A705-2E31-4012-964A-83963DCDB384} = {0354F050-3992-4DD4-B0EE-5FBA04AC72B6}
EndGlobalSection
diff --git a/src/apps/Elsa.Server.Web/Elsa.Server.Web.csproj b/src/apps/Elsa.Server.Web/Elsa.Server.Web.csproj
index 04a927c5a9..8890b8f700 100644
--- a/src/apps/Elsa.Server.Web/Elsa.Server.Web.csproj
+++ b/src/apps/Elsa.Server.Web/Elsa.Server.Web.csproj
@@ -18,11 +18,6 @@
-
-
-
-
-
diff --git a/src/apps/Elsa.Server.Web/Program.cs b/src/apps/Elsa.Server.Web/Program.cs
index 63b49f2ff6..b86853fb95 100644
--- a/src/apps/Elsa.Server.Web/Program.cs
+++ b/src/apps/Elsa.Server.Web/Program.cs
@@ -39,11 +39,6 @@
using Elsa.Server.Web.Extensions;
using Elsa.Server.Web.Filters;
using Elsa.Server.Web.Messages;
-using Elsa.Sql.Extensions;
-using Elsa.Sql.MySql;
-using Elsa.Sql.PostgreSql;
-using Elsa.Sql.Sqlite;
-using Elsa.Sql.SqlServer;
using Elsa.Tenants.AspNetCore;
using Elsa.Tenants.Extensions;
using Elsa.Workflows;
@@ -479,16 +474,6 @@
if (useCaching)
http.UseCache();
})
- .UseSql(options =>
- {
- options.Clients = client =>
- {
- client.Register("MySql");
- client.Register("PostgreSql");
- client.Register("Sqlite");
- client.Register("Sql Server");
- };
- })
.UseEmail(email => email.ConfigureOptions = options => configuration.GetSection("Smtp").Bind(options))
.UseAlterations(alterations =>
{
diff --git a/src/modules/Elsa.Sql.MySql/Elsa.Sql.MySql.csproj b/src/modules/Elsa.Sql.MySql/Elsa.Sql.MySql.csproj
deleted file mode 100644
index 54c6148dc7..0000000000
--- a/src/modules/Elsa.Sql.MySql/Elsa.Sql.MySql.csproj
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
- Provides client implementations for interacting with MySql databases.
-
- elsa module activities sql mysql
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/modules/Elsa.Sql.MySql/FodyWeavers.xml b/src/modules/Elsa.Sql.MySql/FodyWeavers.xml
deleted file mode 100644
index 00e1d9a1c1..0000000000
--- a/src/modules/Elsa.Sql.MySql/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql.MySql/MySqlClient.cs b/src/modules/Elsa.Sql.MySql/MySqlClient.cs
deleted file mode 100644
index 60669f7d18..0000000000
--- a/src/modules/Elsa.Sql.MySql/MySqlClient.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using MySql.Data.MySqlClient;
-using Elsa.Sql.Client;
-using System.Data.Common;
-
-namespace Elsa.Sql.MySql;
-
-///
-/// MySql client implementation.
-///
-///
-public class MySqlClient(string connectionString) : BaseSqlClient(connectionString)
-{
- protected override DbConnection CreateConnection() => new MySqlConnection(_connectionString);
-
- protected override DbCommand CreateCommand(string query, DbConnection connection) => new MySqlCommand(query, (MySqlConnection)connection);
-}
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql.PostgreSql/Elsa.Sql.PostgreSql.csproj b/src/modules/Elsa.Sql.PostgreSql/Elsa.Sql.PostgreSql.csproj
deleted file mode 100644
index 82a2908504..0000000000
--- a/src/modules/Elsa.Sql.PostgreSql/Elsa.Sql.PostgreSql.csproj
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
- Provides client implementations for interacting with PostgreSql databases.
-
- elsa module activities sql postgresql
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/modules/Elsa.Sql.PostgreSql/FodyWeavers.xml b/src/modules/Elsa.Sql.PostgreSql/FodyWeavers.xml
deleted file mode 100644
index 00e1d9a1c1..0000000000
--- a/src/modules/Elsa.Sql.PostgreSql/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql.PostgreSql/PostgreSqlClient.cs b/src/modules/Elsa.Sql.PostgreSql/PostgreSqlClient.cs
deleted file mode 100644
index 5eb5982ba4..0000000000
--- a/src/modules/Elsa.Sql.PostgreSql/PostgreSqlClient.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using Npgsql;
-using Elsa.Sql.Client;
-using System.Data.Common;
-
-namespace Elsa.Sql.PostgreSql;
-
-///
-/// PostgreSQL client implementation.
-///
-///
-public class PostgreSqlClient(string connectionString) : BaseSqlClient(connectionString)
-{
- protected override DbConnection CreateConnection() => new NpgsqlConnection(_connectionString);
-
- protected override DbCommand CreateCommand(string query, DbConnection connection) => new NpgsqlCommand(query, (NpgsqlConnection)connection);
-}
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql.SqlServer/Elsa.Sql.SqlServer.csproj b/src/modules/Elsa.Sql.SqlServer/Elsa.Sql.SqlServer.csproj
deleted file mode 100644
index cab38ce95e..0000000000
--- a/src/modules/Elsa.Sql.SqlServer/Elsa.Sql.SqlServer.csproj
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
- Provides client implementations for interacting with Microsoft SQL Server databases.
-
- elsa module activities sql mssqlserver sqlserver
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/modules/Elsa.Sql.SqlServer/FodyWeavers.xml b/src/modules/Elsa.Sql.SqlServer/FodyWeavers.xml
deleted file mode 100644
index 00e1d9a1c1..0000000000
--- a/src/modules/Elsa.Sql.SqlServer/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql.SqlServer/SqlServerClient.cs b/src/modules/Elsa.Sql.SqlServer/SqlServerClient.cs
deleted file mode 100644
index e8780c3594..0000000000
--- a/src/modules/Elsa.Sql.SqlServer/SqlServerClient.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Data.Common;
-using Elsa.Sql.Client;
-using Microsoft.Data.SqlClient;
-
-namespace Elsa.Sql.SqlServer;
-
-///
-/// Microsoft SQL server client implementation.
-///
-///
-public class SqlServerClient(string connectionString) : BaseSqlClient(connectionString)
-{
- protected override DbConnection CreateConnection() => new SqlConnection(_connectionString);
-
- protected override DbCommand CreateCommand(string query, DbConnection connection) => new SqlCommand(query, (SqlConnection)connection);
-}
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql.Sqlite/Elsa.Sql.Sqlite.csproj b/src/modules/Elsa.Sql.Sqlite/Elsa.Sql.Sqlite.csproj
deleted file mode 100644
index 43bf2bf5a5..0000000000
--- a/src/modules/Elsa.Sql.Sqlite/Elsa.Sql.Sqlite.csproj
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
- Provides client implementations for interacting with Sqlite databases.
-
- elsa module activities sql sqlite
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/modules/Elsa.Sql.Sqlite/FodyWeavers.xml b/src/modules/Elsa.Sql.Sqlite/FodyWeavers.xml
deleted file mode 100644
index 00e1d9a1c1..0000000000
--- a/src/modules/Elsa.Sql.Sqlite/FodyWeavers.xml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql.Sqlite/SqliteClient.cs b/src/modules/Elsa.Sql.Sqlite/SqliteClient.cs
deleted file mode 100644
index ec43f52452..0000000000
--- a/src/modules/Elsa.Sql.Sqlite/SqliteClient.cs
+++ /dev/null
@@ -1,16 +0,0 @@
-using System.Data.Common;
-using Elsa.Sql.Client;
-using Microsoft.Data.Sqlite;
-
-namespace Elsa.Sql.Sqlite;
-
-///
-/// Sqlite client implementation.
-///
-///
-public class SqliteClient(string connectionString) : BaseSqlClient(connectionString)
-{
- protected override DbConnection CreateConnection() => new SqliteConnection(_connectionString);
-
- protected override DbCommand CreateCommand(string query, DbConnection connection) => new SqliteCommand(query, (SqliteConnection)connection);
-}
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql/Activities/SqlCodeOptionsProvider.cs b/src/modules/Elsa.Sql/Activities/SqlCodeOptionsProvider.cs
deleted file mode 100644
index f61bad42ff..0000000000
--- a/src/modules/Elsa.Sql/Activities/SqlCodeOptionsProvider.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-using System.Reflection;
-using Elsa.Workflows.UIHints.CodeEditor;
-
-// ReSharper disable once CheckNamespace
-namespace Elsa.Sql.Activities;
-
-internal class SqlCodeOptionsProvider : CodeEditorOptionsProviderBase
-{
- protected override string GetLanguage(PropertyInfo propertyInfo, object? context) => "sql";
-}
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql/Activities/SqlCommand.cs b/src/modules/Elsa.Sql/Activities/SqlCommand.cs
deleted file mode 100644
index bc906878d8..0000000000
--- a/src/modules/Elsa.Sql/Activities/SqlCommand.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-using System.Runtime.CompilerServices;
-using Elsa.Expressions.Models;
-using Elsa.Extensions;
-using Elsa.Sql.Contracts;
-using Elsa.Sql.UIHints;
-using Elsa.Workflows;
-using Elsa.Workflows.Attributes;
-using Elsa.Workflows.Models;
-using Elsa.Workflows.UIHints;
-
-namespace Elsa.Sql.Activities;
-
-///
-/// Execute given SQL command and returns the number of rows affected.
-///
-[Activity("Elsa", "SQL", "Execute given SQL command and returns the number of rows affected.", DisplayName = "SQL Command", Kind = ActivityKind.Task)]
-public class SqlCommand : Activity
-{
- ///
- ///
- ///
- public SqlCommand([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
- {
- }
-
- ///
- /// Database client to connect with.
- ///
- [Input(
- Description = "Database client.",
- UIHint = InputUIHints.DropDown,
- UIHandler = typeof(SqlClientsDropDownProvider))]
- public Input Client { get; set; } = default!;
-
- ///
- /// Connection string.
- ///
- [Input(
- Description = "Connection string.",
- CanContainSecrets = true)]
- public Input ConnectionString { get; set; } = default!;
-
- ///
- /// Command to run against the database.
- ///
- [Input(
- Description = "Command to run against the database.",
- DefaultSyntax = "Sql",
- UIHint = InputUIHints.CodeEditor,
- UIHandler = typeof(SqlCodeOptionsProvider)
- )]
- public Input Command { get; set; } = default!;
-
-
- ///
- /// The number of affected rows.
- ///
- [Output(
- Description = "The number of rows affected.")]
- public Output Result { get; set; } = default!;
-
-
- ///
- ///
- ///
- protected override async ValueTask ExecuteAsync(ActivityExecutionContext context)
- {
- var command = Command.GetOrDefault(context);
-
- // If no command was specified, there's nothing to do.
- if (string.IsNullOrWhiteSpace(command))
- return;
-
- // Get and execute the SQL evaluator.
- var evaluator = context.GetRequiredService();
- var evaluatedQuery = await evaluator.EvaluateAsync(command, context.ExpressionExecutionContext, new ExpressionEvaluatorOptions(), context.CancellationToken);
-
- // Create client
- var factory = context.GetRequiredService();
- var client = factory.CreateClient(Client.GetOrDefault(context), ConnectionString.GetOrDefault(context));
-
- // Execute command
- var result = await client.ExecuteCommandAsync(evaluatedQuery);
- context.Set(Result, result);
-
- await CompleteAsync(context);
- }
-}
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql/Activities/SqlQuery.cs b/src/modules/Elsa.Sql/Activities/SqlQuery.cs
deleted file mode 100644
index 5b721aed81..0000000000
--- a/src/modules/Elsa.Sql/Activities/SqlQuery.cs
+++ /dev/null
@@ -1,90 +0,0 @@
-using System.Data;
-using System.Runtime.CompilerServices;
-using Elsa.Expressions.Models;
-using Elsa.Extensions;
-using Elsa.Sql.Contracts;
-using Elsa.Sql.UIHints;
-using Elsa.Workflows;
-using Elsa.Workflows.Attributes;
-using Elsa.Workflows.Models;
-using Elsa.Workflows.UIHints;
-
-namespace Elsa.Sql.Activities;
-
-///
-/// Execute given SQL query and return the resulting data.
-///
-[Activity("Elsa", "SQL", "Execute given SQL query and return the resulting data.", DisplayName = "SQL Query", Kind = ActivityKind.Task)]
-public class SqlQuery : Activity
-{
- ///
- ///
- ///
- public SqlQuery([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
- {
- }
-
- ///
- /// Database client to connect with.
- ///
- [Input(
- Description = "Database client.",
- UIHint = InputUIHints.DropDown,
- UIHandler = typeof(SqlClientsDropDownProvider))]
- public Input Client { get; set; } = default!;
-
- ///
- /// Connection string.
- ///
- [Input(
- Description = "Connection string.",
- CanContainSecrets = true)]
- public Input ConnectionString { get; set; } = default!;
-
- ///
- /// Query to run against the database.
- ///
- [Input(
- Description = "Query to run against the database.",
- DefaultSyntax = "Sql",
- UIHint = InputUIHints.CodeEditor,
- UIHandler = typeof(SqlCodeOptionsProvider)
- )]
- public Input Query { get; set; } = default!;
-
-
- ///
- /// of queried results.
- ///
- [Output(
- Description = "DataSet of queried results.",
- IsSerializable = false)]
- public Output Results { get; set; } = default!;
-
-
- ///
- ///
- ///
- protected override async ValueTask ExecuteAsync(ActivityExecutionContext context)
- {
- var query = Query.GetOrDefault(context);
-
- // If no query was specified, there's nothing to do.
- if (string.IsNullOrWhiteSpace(query))
- return;
-
- // Get and execute the SQL evaluator.
- var evaluator = context.GetRequiredService();
- var evaluatedQuery = await evaluator.EvaluateAsync(query, context.ExpressionExecutionContext, new ExpressionEvaluatorOptions(), context.CancellationToken);
-
- // Create client
- var factory = context.GetRequiredService();
- var client = factory.CreateClient(Client.GetOrDefault(context), ConnectionString.GetOrDefault(context));
-
- // Execute query
- var results = await client.ExecuteQueryAsync(evaluatedQuery);
- context.Set(Results, results);
-
- await CompleteAsync(context);
- }
-}
\ No newline at end of file
diff --git a/src/modules/Elsa.Sql/Activities/SqlSingleValue.cs b/src/modules/Elsa.Sql/Activities/SqlSingleValue.cs
deleted file mode 100644
index 4c05dc44a2..0000000000
--- a/src/modules/Elsa.Sql/Activities/SqlSingleValue.cs
+++ /dev/null
@@ -1,88 +0,0 @@
-using System.Runtime.CompilerServices;
-using Elsa.Expressions.Models;
-using Elsa.Extensions;
-using Elsa.Sql.Contracts;
-using Elsa.Sql.UIHints;
-using Elsa.Workflows;
-using Elsa.Workflows.Attributes;
-using Elsa.Workflows.Models;
-using Elsa.Workflows.UIHints;
-
-namespace Elsa.Sql.Activities;
-
-///
-/// Execute given SQL command and return a single result.
-///
-[Activity("Elsa", "SQL", "Execute given SQL command and return a single result.", DisplayName = "SQL Single Value", Kind = ActivityKind.Task)]
-public class SqlSingleValue : Activity
-{
- ///
- ///
- ///
- public SqlSingleValue([CallerFilePath] string? source = default, [CallerLineNumber] int? line = default) : base(source, line)
- {
- }
-
- ///
- /// Database client to connect with.
- ///
- [Input(
- Description = "Database client.",
- UIHint = InputUIHints.DropDown,
- UIHandler = typeof(SqlClientsDropDownProvider))]
- public Input Client { get; set; } = default!;
-
- ///
- /// Connection string.
- ///
- [Input(
- Description = "Connection string.",
- CanContainSecrets = true)]
- public Input ConnectionString { get; set; } = default!;
-
- ///
- /// Command to run against the database.
- ///
- [Input(
- Description = "Query to run against the database.",
- DefaultSyntax = "Sql",
- UIHint = InputUIHints.CodeEditor,
- UIHandler = typeof(SqlCodeOptionsProvider)
- )]
- public Input Command { get; set; } = default!;
-
-
- ///
- /// Command result.
- ///
- [Output(
- Description = "Command result.")]
- public Output