Skip to content
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -40,6 +42,9 @@ jobs:

- name: Run standards checks
run: npm run standards
env:
# For PRs: lint from base branch. For pushes: lint from previous commit
COMMITLINT_FROM: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}

- name: Run cargo check
run: cargo check --workspace --all-targets
Expand Down
1 change: 1 addition & 0 deletions .markdownlint-cli2.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ module.exports = {
...sharedStandards.ignores,
'**/dist-js',
'**/permissions/autogenerated',
'**/target',
],
};
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
resolver = "2"
resolver = "3"
members = [
"crates/sqlx-sqlite-conn-mgr",
]
Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,17 @@ npm install @silvermine/tauri-plugin-sqlite

Use the plugin from JavaScript:

Add the plugin permission to your capabilities file `src-tauri/capabilities/default.json`:

```json
{
"permissions": [
"core:default",
"sqlite:default"
]
}
```

```typescript
// TODO: Add real examples once we have decided on the plugin API
import { hello } from '@silvermine/tauri-plugin-sqlite';
Expand Down
4 changes: 2 additions & 2 deletions crates/sqlx-sqlite-conn-mgr/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ queries.
is released via `WriteGuard` drop.

5. **Connection Management**:
* Read pool: max 6 concurrent connections, min 0 cached
* Write pool: max 1 connection, min 0 cached
* Read pool: max 6 concurrent connections, 0 cached
* Write pool: max 1 connection, 0 cached
* Idle timeout: 30 seconds for both pools
* No perpetual caching to minimize idle thread overhead

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
"scripts": {
"build": "tsc -p guest-js/tsconfig.json",
"check-node-version": "check-node-version --npm 10.5.0",
"commitlint": "commitlint --from ${COMMITLINT_FROM:-002bcc8} --to ${COMMITLINT_TO:-HEAD}",
"markdownlint": "markdownlint-cli2",
"rust:lint": "cargo lint-clippy && cargo lint-fmt",
"rust:lint:fix": "cargo fix-clippy && cargo fix-fmt",
"standards": "npm run markdownlint && npm run rust:lint"
"standards": "npm run markdownlint && npm run rust:lint && npm run commitlint"
},
"author": "Jeremy Thomerson",
"license": "MIT",
Expand Down