tauri-apps / tauri-apps/plugins-workspace
[sql] Creates database automatically if not exists
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
Hi, the plugin creates databases implicitly if they don't exist
For e.g : ```
const dbURL = 'mysql://' +
`${this.dbConnectionInfo.DATABASE_USERNAME}:${this.dbConnectionInfo.DATABASE_PASSWORD}` +
`@${this.dbConnectionInfo.DATABASE_HOST}:${this.dbConnectionInfo.DATABASE_PORT}/` +
this.dbConnectionInfo.DATABASE_NAME;
this.dbConnection = await Database.load(dbURL)```
In the above code the database details came from tauri's store api from which user can connect to their own databases
But even if the database don't exist, this plugin is creating the database implicitly.
I want to throw user an error that this database dont exist
How to solve this, any help would be appreciated
Contributor guide
Assessment
This issue has not been assessed yet.