@tauri-apps/plugin-sql 2.0.1 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -56,7 +56,7 @@ yarn add https://github.com/tauri-apps/tauri-plugin-sql#v2
56
56
 
57
57
  First you need to register the core plugin with Tauri:
58
58
 
59
- `src-tauri/src/main.rs`
59
+ `src-tauri/src/lib.rs`
60
60
 
61
61
  ```rust
62
62
  fn main() {
@@ -4,12 +4,12 @@ export interface QueryResult {
4
4
  /**
5
5
  * The last inserted `id`.
6
6
  *
7
- * This value is always `0` when using the Postgres driver. If the
7
+ * This value is not set for Postgres databases. If the
8
8
  * last inserted id is required on Postgres, the `select` function
9
9
  * must be used, with a `RETURNING` clause
10
10
  * (`INSERT INTO todos (title) VALUES ($1) RETURNING id`).
11
11
  */
12
- lastInsertId: number;
12
+ lastInsertId?: number;
13
13
  }
14
14
  /**
15
15
  * **Database**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tauri-apps/plugin-sql",
3
- "version": "2.0.1",
3
+ "version": "2.2.0",
4
4
  "description": "Interface with SQL databases",
5
5
  "license": "MIT OR Apache-2.0",
6
6
  "authors": [