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

Docs: need to remind users that they have to install the driver packages for their supported database #517

Open
Aaronontheweb opened this issue Feb 6, 2025 · 0 comments

Comments

@Aaronontheweb
Copy link
Member

Please describe what you are trying to understand

I ran into this while working on https://github.com/Aaronontheweb/AkkaPersistenceSqlMemoryLeak

With a package setup that looks like:

<Project>
  <PropertyGroup>
    <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
  </PropertyGroup>
  <ItemGroup Label="App">
    <PackageVersion Include="Akka.Hosting" Version="1.5.37" />
    <PackageVersion Include="Akka.Persistence.Sql.Hosting" Version="1.5.37" />
    <PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
  </ItemGroup>
</Project>

You will get the following runtime exception at startup:

Image

If you do not explicitly add the System.Data.SqlClient (for SQL Server - the package will be different for SQLite / Postgres / etc)

<Project>
  <PropertyGroup>
    <ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
  </PropertyGroup>
  <ItemGroup Label="App">
    <PackageVersion Include="Akka.Hosting" Version="1.5.37" />
    <PackageVersion Include="Akka.Persistence.Sql.Hosting" Version="1.5.37" />
    <PackageVersion Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
    <PackageVersion Include="System.Data.SqlClient" Version="4.9.0" />
  </ItemGroup>
</Project>

We should document this in README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant