From 0783f02158dd92c0bb3a6982af126a98714aae1c Mon Sep 17 00:00:00 2001 From: FabianLars Date: Mon, 13 Mar 2023 13:03:02 +0100 Subject: [PATCH] fmt --- .github/workflows/msrv-check.yml | 16 ++++++++-------- plugins/sql/guest-js/index.ts | 4 ++-- plugins/store/README.md | 2 ++ 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/msrv-check.yml b/.github/workflows/msrv-check.yml index 894ecffa..a603e8f0 100644 --- a/.github/workflows/msrv-check.yml +++ b/.github/workflows/msrv-check.yml @@ -5,18 +5,18 @@ on: branches: - dev paths: - - '.github/workflows/msrv-check.yml' - - 'plugins/*/src/**' - - '**/Cargo.toml' - - '**/Cargo.lock' + - ".github/workflows/msrv-check.yml" + - "plugins/*/src/**" + - "**/Cargo.toml" + - "**/Cargo.lock" pull_request: branches: - dev paths: - - '.github/workflows/msrv-check.yml' - - 'plugins/*/src/**' - - '**/Cargo.toml' - - '**/Cargo.lock' + - ".github/workflows/msrv-check.yml" + - "plugins/*/src/**" + - "**/Cargo.toml" + - "**/Cargo.lock" concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/plugins/sql/guest-js/index.ts b/plugins/sql/guest-js/index.ts index 87efe585..c4ecca2f 100644 --- a/plugins/sql/guest-js/index.ts +++ b/plugins/sql/guest-js/index.ts @@ -1,5 +1,5 @@ import { invoke } from "@tauri-apps/api/tauri"; -import { BaseDirectory } from "@tauri-apps/api/path" +import { BaseDirectory } from "@tauri-apps/api/path"; export interface QueryResult { /** The number of rows affected by the query. */ @@ -49,7 +49,7 @@ export default class Database { static async load(path: string, dir?: BaseDirectory): Promise { const _path = await invoke("plugin:sql|load", { db: path, - dir + dir, }); return new Database(_path); diff --git a/plugins/store/README.md b/plugins/store/README.md index c76c354c..f48f03ba 100644 --- a/plugins/store/README.md +++ b/plugins/store/README.md @@ -64,7 +64,9 @@ await store.save(); // this manually saves the store, otherwise the store is onl ``` ### Persisting values + Values added to the store are not persisted between application loads unless: + 1. The application is closed gracefully (plugin automatically saves) 2. The store is manually saved (using `store.save()`)