Skip to content

Commit

Permalink
Merge pull request #9 from CommunityHiQ/dependencyUpdate
Browse files Browse the repository at this point in the history
Updated dependency MySql.Data
  • Loading branch information
Svenskapojkarna authored Feb 16, 2023
2 parents f61ad48 + 953ce40 commit 853529f
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/BuildAndTestOnEveryPush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
run: dotnet pack --configuration Release --include-source

- name: Push NuGet package to the testfeed
run: dotnet nuget push Frends.Community.MySql/bin/Release/Frends.Community.MySql.*.nupkg --api-key ${{ secrets.COMMUNITY_FEED_API_KEY }} --source https://www.myget.org/F/frends-community-test/api/v2/package --symbol-source https://www.myget.org/F/frends-community-test/symbols/api/v2/package
run: dotnet nuget push Frends.Community.MySql/bin/Release/Frends.Community.MySql.*.nupkg --api-key ${{ secrets.COMMUNITY_FEED_API_KEY }} --source https://www.myget.org/F/frends-community-test/api/v2/package
2 changes: 1 addition & 1 deletion .github/workflows/PackAndPushAfterMerge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
run: dotnet pack --configuration Release --include-source

- name: Push NuGet package to the (prod) feed
run: dotnet nuget push Frends.Community.MySql/bin/Release/Frends.Community.MySql.*.nupkg --api-key ${{ secrets.COMMUNITY_FEED_API_KEY }} --source https://www.myget.org/F/frends-community/api/v2/package --symbol-source https://www.myget.org/F/frends-community/symbols/api/v2/package
run: dotnet nuget push Frends.Community.MySql/bin/Release/Frends.Community.MySql.*.nupkg --api-key ${{ secrets.COMMUNITY_FEED_API_KEY }} --source https://www.myget.org/F/frends-community/api/v2/package

- name: Create Release
id: create_release
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net5</TargetFramework>
<TargetFramework>net471</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>
Expand All @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MySql.Data" Version="8.0.23" />
<PackageReference Include="MySql.Data" Version="8.0.32" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="nunit" Version="3.13.1" />
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
Expand Down
3 changes: 1 addition & 2 deletions Frends.Community.MySql.Tests/MySqlQueryTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.IO;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.VisualStudio.TestPlatform.CoreUtilities.Extensions;
using MySql.Data.MySqlClient;
using NUnit.Framework;

Expand Down Expand Up @@ -166,7 +165,7 @@ public async Task ShouldSuccess_InsertValues()
var q = new QueryInput
{
ConnectionString = _connectionString,
CommandText = "insert into HodorTest (name, value) values ( " + rndName.AddDoubleQuote() + " , " + rndValue + " );"
CommandText = $"insert into HodorTest (name, value) values ( \"{rndName}\" , {rndValue});"

};
_options.MySqlTransactionIsolationLevel = MySqlTransactionIsolationLevel.Default;
Expand Down
2 changes: 1 addition & 1 deletion Frends.Community.MySql/Definitions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class Options
{

/// <summary>
/// Timeout value in seconds
/// Timeout value in seconds.
/// </summary>
[DefaultValue(30)]
public int TimeoutSeconds { get; set; }
Expand Down
10 changes: 2 additions & 8 deletions Frends.Community.MySql/Frends.Community.MySql.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<IncludeSource>true</IncludeSource>
<PackageTags>Frends</PackageTags>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<Version>2.1.0</Version>
<Version>2.1.1</Version>

</PropertyGroup>

Expand All @@ -23,7 +23,7 @@
<ItemGroup>
<PackageReference Include="Dapper" Version="2.0.78" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="MySql.Data" Version="8.0.23" />
<PackageReference Include="MySql.Data" Version="8.0.32" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Data.Common" Version="4.3.0" />
Expand All @@ -32,10 +32,4 @@
<PackageReference Include="System.Xml.XmlDocument" Version="4.3.0" />
</ItemGroup>

<ProjectExtensions>
<VisualStudio>
<UserProperties frendstaskmetadata_1json__JsonSchema="http://json.schemastore.org/azure-iot-edge-deployment-template-2.0" />
</VisualStudio>
</ProjectExtensions>

</Project>
9 changes: 5 additions & 4 deletions Frends.Community.MySql/FrendsTaskMetadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{
"Tasks": [
"Tasks":
[
{
"TaskMethod": "Frends.Community.MySql.MySqlTasks.ExecuteQuery"
},
{
"TaskMethod": "Frends.Community.MySql.MySqlTasks.ExecuteProcedure"
}
{
"TaskMethod": "Frends.Community.MySql.MySqlTasks.ExecuteProcedure"
}
]
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,5 @@ NOTE: Be sure to merge the latest from "upstream" before making a pull request!
| ----- | ----- |
| 1.0.7 | Initial version of MySql Query Task |
| 2.0.0 | Task parameters are completely chnaged, so manual work is needed when updating to this version. Tasks are now based on dapper.|
| 2.1.1 | MySql.Data library updated from 8.0.23 to 8.0.32. |

0 comments on commit 853529f

Please sign in to comment.