Skip to content

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

Merged
FabianLars merged 1 commit into
tauri-apps:v2from
thewh1teagle:feat/sql/public-db-instances
Jun 10, 2024
Merged

feat(sql): made DbInstances public for managing directly from Rust#1381
FabianLars merged 1 commit into
tauri-apps:v2from
thewh1teagle:feat/sql/public-db-instances

Conversation

@thewh1teagle
Copy link
Copy Markdown
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
Copy Markdown

Hope this will be merged soon :)

@smurthy
Copy link
Copy Markdown

smurthy commented Jun 9, 2024

This feature would be useful.

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