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

SQLite integrations #372

Merged
merged 42 commits into from
Jan 15, 2025
Merged

SQLite integrations #372

merged 42 commits into from
Jan 15, 2025

Conversation

aaronpowell
Copy link
Member

Implementing a set of integrations for SQLite, across both hosting and client.

The hosting integration will create the SQLite database using a random file name in the user's temp directory, or the path/name provided by the user. It then provides that as a connection string to the client integration. Additionally, the hosting integration can have SQLite Web added to it for a web-based database viewer.

There are two client integrations, one for the "raw" SQLite DbConnection implementation (wrapping Microsoft.Data.Sqlite), and one for Entity Framework Core.

Closes #364

PR Checklist

  • Created a feature/dev branch in your fork (vs. submitting directly from a commit on main)
  • Based off latest main branch of toolkit
  • PR doesn't include merge commits (always rebase on top of our main, if needed)
  • New integration
    • Docs are written
    • Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
  • Tests for the changes have been added (for bug fixes / features) (if applicable)
  • Contains NO breaking changes
  • Every new API (including internal ones) has full XML docs
  • Code follows all style conventions

Other information

@aaronpowell aaronpowell added the integration A new .NET Aspire integration label Jan 8, 2025
@aaronpowell aaronpowell self-assigned this Jan 8, 2025
@aaronpowell aaronpowell requested review from Copilot and Alirexaa and removed request for Copilot January 8, 2025 03:47
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 37 out of 51 changed files in this pull request and generated 1 comment.

Files not reviewed (14)
  • CommunityToolkit.Aspire.sln: Language not supported
  • Directory.Packages.props: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.Api/CommunityToolkit.Aspire.Sqlite.Api.csproj: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.Api/Migrations/20250107054253_InitialCreate.Designer.cs: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.Api/Properties/launchSettings.json: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.Api/appsettings.json: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.AppHost/CommunityToolkit.Aspire.Sqlite.AppHost.csproj: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.AppHost/Properties/launchSettings.json: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.AppHost/appsettings.json: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.ServiceDefaults/CommunityToolkit.Aspire.Sqlite.ServiceDefaults.csproj: Language not supported
  • src/CommunityToolkit.Aspire.Hosting.Sqlite/CommunityToolkit.Aspire.Hosting.Sqlite.csproj: Language not supported
  • src/CommunityToolkit.Aspire.Hosting.Sqlite/PublicAPI.Unshipped.txt: Language not supported
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.Api/Migrations/BloggingContextModelSnapshot.cs: Evaluated as low risk
  • examples/sqlite/CommunityToolkit.Aspire.Sqlite.Api/Program.cs: Evaluated as low risk

@aaronpowell aaronpowell force-pushed the aaronpowell/issue364 branch 2 times, most recently from b5d214c to 38e8555 Compare January 9, 2025 03:43
Copy link
Member

@Alirexaa Alirexaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overal LGTM. Some minor things need to be adjusted.

Copy link
Member

@Alirexaa Alirexaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Alirexaa
Copy link
Member

Alirexaa commented Jan 14, 2025

@aaronpowell, It would be nice to add new packages to repo README in this RP.

@aaronpowell
Copy link
Member Author

@aaronpowell, It would be nice to add new packages to repo README in this RP.

ah yes, I always forget that. I'll add them soon (digging into the Deno stuff at the moment)

…pire.Hosting.Sqlite.csproj

Co-authored-by: Alireza Baloochi  <[email protected]>
Copy link

Code Coverage

Package Line Rate Branch Rate Complexity Health
CommunityToolkit.Aspire.EventStore 100% 100% 46
CommunityToolkit.Aspire.Hosting.ActiveMQ 60% 24% 104
CommunityToolkit.Aspire.Hosting.ActiveMQ.MassTransit 1% 0% 14
CommunityToolkit.Aspire.Hosting.Azure.DataApiBuilder 100% 100% 22
CommunityToolkit.Aspire.Hosting.Azure.StaticWebApps 100% 100% 28
CommunityToolkit.Aspire.Hosting.Bun 81% 71% 54
CommunityToolkit.Aspire.Hosting.Deno 84% 75% 72
CommunityToolkit.Aspire.Hosting.EventStore 90% 71% 62
CommunityToolkit.Aspire.Hosting.Golang 94% 50% 16
CommunityToolkit.Aspire.Hosting.Java 98% 71% 58
CommunityToolkit.Aspire.Hosting.Meilisearch 61% 27% 94
CommunityToolkit.Aspire.Hosting.Ngrok 59% 50% 58
CommunityToolkit.Aspire.Hosting.NodeJS.Extensions 90% 68% 92
CommunityToolkit.Aspire.Hosting.Ollama 65% 64% 198
CommunityToolkit.Aspire.Hosting.Python.Extensions 67% 46% 56
CommunityToolkit.Aspire.Hosting.Rust 94% 83% 16
CommunityToolkit.Aspire.Hosting.SqlDatabaseProjects 75% 61% 96
CommunityToolkit.Aspire.Hosting.Sqlite 96% 96% 38
CommunityToolkit.Aspire.MassTransit.RabbitMQ 100% 100% 30
CommunityToolkit.Aspire.Meilisearch 97% 92% 68
CommunityToolkit.Aspire.Microsoft.Data.Sqlite 89% 85% 52
CommunityToolkit.Aspire.Microsoft.EntityFrameworkCore.Sqlite 50% 50% 88
CommunityToolkit.Aspire.OllamaSharp 87% 82% 68
Summary 75% (2728 / 3616) 63% (707 / 1120) 1430

Minimum allowed line rate is 60%

@aaronpowell aaronpowell merged commit 3994771 into main Jan 15, 2025
10 checks passed
@aaronpowell aaronpowell deleted the aaronpowell/issue364 branch January 15, 2025 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration A new .NET Aspire integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SQLite integration
2 participants