Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update packages #17

Merged
merged 3 commits into from
Oct 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/ImplementFactStorePostgres/FactStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public sealed class FactStore
private static readonly Lazy<string> AppendEventSql = new(() =>
typeof(FactStore)
.GetStringEmbeddedResource("AppendFact.sql")
.MatchOrThrow());
.MatchOrThrow(() => throw new InvalidOperationException()));

private static readonly Lazy<string> GetEventsSql = new(() =>
typeof(FactStore)
.GetStringEmbeddedResource("GetFacts.sql")
.MatchOrThrow());
.MatchOrThrow(() => throw new InvalidOperationException()));

private readonly DatabaseInfo _databaseInfo;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
<PackageReference Include="Npgsql" Version="7.0.6"/>
<PackageReference Include="Serilog" Version="3.0.1"/>
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0"/>
<PackageReference Include="SleepingBearSystems.Tools.Common" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence.Postgres" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Common" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Monad" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence.Postgres" Version="2.0.3"/>
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.2"/>
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/ImplementFactStorePostgres/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public static async Task<int> Main()

var sql = typeof(FactStore)
.GetStringEmbeddedResource("Task001_AddFactsTable.sql")
.MatchOrThrow();
.MatchOrThrow(() => throw new InvalidOperationException());
var databaseUpgradeTasks = ImmutableList<DatabaseUpgradeTask>
.Empty
.Add(DatabaseUpgradeTask.Create("1.0.0:A94E91FC27844E8D89A7FAC474E36C79", sql));
Expand Down
1 change: 1 addition & 0 deletions src/ImplementFactStoreSqlite/FactStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using System.Text;
using Newtonsoft.Json;
using SleepingBearSystems.Tools.Infrastructure;
using SleepingBearSystems.Tools.Monad;
using SleepingBearSystems.Tools.Persistence;
using SleepingBearSystems.Tools.Persistence.Sqlite;

Expand Down
7 changes: 4 additions & 3 deletions src/ImplementFactStoreSqlite/ImplementFactStoreSqlite.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="Serilog" Version="3.0.1"/>
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0"/>
<PackageReference Include="SleepingBearSystems.Tools.Common" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence.Sqlite" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Common" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Monad" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence.Sqlite" Version="2.0.3"/>
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.118"/>
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.2"/>
</ItemGroup>
Expand Down
1 change: 1 addition & 0 deletions src/ImplementFactStoreSqlite/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Serilog;
using SleepingBearSystems.Tools.Common;
using SleepingBearSystems.Tools.Infrastructure;
using SleepingBearSystems.Tools.Monad;
using SleepingBearSystems.Tools.Persistence;
using SleepingBearSystems.Tools.Persistence.Sqlite;

Expand Down
1 change: 0 additions & 1 deletion src/UseRailwayOrientedProgramming/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using Serilog;
using SleepingBearSystems.Tools.Common;
using SleepingBearSystems.Tools.Railway;
using Result = SleepingBearSystems.Tools.Railway.Result;

namespace SleepingBearSystems.ToolsSamples.UseRailwayOrientedProgramming;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="Serilog" Version="3.0.1"/>
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0"/>
<PackageReference Include="SleepingBearSystems.Tools.Common" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Railway" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Common" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Railway" Version="2.0.3"/>
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.2"/>
</ItemGroup>

Expand Down
7 changes: 4 additions & 3 deletions src/UseSqliteDatabase/UseSqliteDatabase.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
<PackageReference Include="Newtonsoft.Json" Version="13.0.3"/>
<PackageReference Include="Serilog" Version="3.0.1"/>
<PackageReference Include="Serilog.Sinks.Console" Version="4.1.0"/>
<PackageReference Include="SleepingBearSystems.Tools.Common" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence.Sqlite" Version="2.0.1-alpha"/>
<PackageReference Include="SleepingBearSystems.Tools.Common" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Monad" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence" Version="2.0.3"/>
<PackageReference Include="SleepingBearSystems.Tools.Persistence.Sqlite" Version="2.0.3"/>
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.118"/>
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.2"/>
</ItemGroup>
Expand Down