New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@tauri-apps/plugin-sql

Package Overview
Dependencies
Maintainers
5
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tauri-apps/plugin-sql - npm Package Compare versions

Comparing version
2.0.0-beta.7
to
2.0.0-beta.8
+7
-6
package.json
{
"name": "@tauri-apps/plugin-sql",
"version": "2.0.0-beta.7",
"version": "2.0.0-beta.8",
"description": "Interface with SQL databases",

@@ -9,2 +9,3 @@ "license": "MIT or APACHE-2.0",

],
"repository": "https://github.com/tauri-apps/plugins-workspace",
"type": "module",

@@ -19,2 +20,5 @@ "types": "./dist-js/index.d.ts",

},
"scripts": {
"build": "rollup -c"
},
"files": [

@@ -26,7 +30,4 @@ "dist-js",

"dependencies": {
"@tauri-apps/api": "2.0.0-beta.15"
},
"scripts": {
"build": "rollup -c"
"@tauri-apps/api": "^2.0.0-beta.16"
}
}
}

@@ -161,4 +161,23 @@ ![plugin-sql](https://github.com/tauri-apps/plugins-workspace/raw/v2/plugins/sql/banner.png)

Migrations are applied automatically when the plugin is initialized. The plugin runs these migrations against the database specified by the connection string. Ensure that the migrations are defined in the correct order and are idempotent (safe to run multiple times).
To apply the migrations when the plugin is initialized, add the connection string to the `tauri.conf.json` file:
```json
{
"plugins": {
"sql": {
"preload": ["sqlite:mydatabase.db"]
}
}
}
```
Alternatively, the client side `load()` also runs the migrations for a given connection string:
```ts
import Database from "@tauri-apps/plugin-sql";
const db = await Database.load("sqlite:mydatabase.db");
```
Ensure that the migrations are defined in the correct order and are safe to run multiple times.
### Migration Management

@@ -165,0 +184,0 @@