-
Notifications
You must be signed in to change notification settings - Fork 39
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
SQLite integrations #372
Conversation
There was a problem hiding this 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
b5d214c
to
38e8555
Compare
There was a problem hiding this 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.
src/CommunityToolkit.Aspire.Hosting.Sqlite/SqliteResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Aspire.Hosting.Sqlite/SqliteResourceBuilderExtensions.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Aspire.Microsoft.Data.Sqlite/AspireSqliteExtensions.cs
Outdated
Show resolved
Hide resolved
src/CommunityToolkit.Aspire.Microsoft.Data.Sqlite/AspireSqliteExtensions.cs
Outdated
Show resolved
Hide resolved
…oid locking issues
Also, finally figured out why db was getting read-only errors, need to set unix file system permissions explicitly%
Also decided to rename the method to AddSqliteConnection to be clearer as to what you're adding
…oid locking issues
Also, finally figured out why db was getting read-only errors, need to set unix file system permissions explicitly%
Also decided to rename the method to AddSqliteConnection to be clearer as to what you're adding
Also decided to rename the method to AddSqliteConnection to be clearer as to what you're adding
…oid locking issues
Also, finally figured out why db was getting read-only errors, need to set unix file system permissions explicitly%
Also decided to rename the method to AddSqliteConnection to be clearer as to what you're adding
d204efb
to
dc59514
Compare
src/CommunityToolkit.Aspire.Hosting.Sqlite/CommunityToolkit.Aspire.Hosting.Sqlite.csproj
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@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]>
…olkit/Aspire into aaronpowell/issue364
Minimum allowed line rate is |
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
Other information