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

feat(sql): made DbInstances public for managing directly from Rust #1381

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

thewh1teagle
Copy link
Contributor

This PR expands the functionality of the SQL plugin in the plugins-workspace for v2 by exposing database instances for direct Rust access.

Example useage:

use tauri_plugin_sql::DbInstances;

let instances = app_handle.state::<DbInstances>();
let instances = instances.inner().0.lock().await;
println!("instances: {:?}", instances);

@thewh1teagle thewh1teagle requested a review from a team as a code owner May 28, 2024 17:01
@danielniccoli
Copy link

Hope this will be merged soon :)

@smurthy
Copy link

smurthy commented Jun 9, 2024

This feature would be useful.

@FabianLars FabianLars merged commit 4216c05 into tauri-apps:v2 Jun 10, 2024
13 checks passed
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.

4 participants