Skip to content

Conversation

rpander93
Copy link

@rpander93 rpander93 commented Jun 20, 2025

I use SQLite as storage for my Tauri application. By default, SQLx (the underlying driver) uses max. 10 parallel pool connections for SQLite.

When inserting a bunch of rows, I frequently get foreign key failure issues because the INSERT statements are spread across all connections and thus not in the right order. This plugin does not have proper transaction support (executing all statements on the same connection) and thus doesnt work either.

This PR implements the ability to limit the maximum number of connections in the pool. For me, by setting this to 1 connection maximum, I can ensure that all INSERTs are applied in the same order as I send them. Also, I can now start a transaction manually, because there's only ever 1 connection active.

Rust implementation based on #2553

@rpander93 rpander93 requested a review from a team as a code owner June 20, 2025 15:12
Copy link
Contributor

github-actions bot commented Jun 20, 2025

Package Changes Through a0d34ef

There are 2 changes which include updater with minor, updater-js with minor

Planned Package Versions

The following package releases are the planned based on the context of changes in this pull request.

package current next
api-example 2.0.35 2.0.36
api-example-js 2.0.31 2.0.32
updater 2.9.0 2.10.0
updater-js 2.9.0 2.10.0

Add another change file through the GitHub UI by following this link.


Read about change files or the docs at github.com/jbolda/covector

@rpander93
Copy link
Author

@FabianLars is there any interest of merging this?

@FabianLars
Copy link
Member

interest yes but i have 0 time for the sql plugin at the moment. also, some ci checks failed :)

@rpander93
Copy link
Author

okay. i've updated the PR to address the failing checks.

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

Successfully merging this pull request may close these issues.

2 participants