Skip to content

Commit 6a0164a

Browse files
committed
chore: clarify Tauri plugin usage in README
1 parent 8ccede7 commit 6a0164a

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,17 @@ npm install @silvermine/tauri-plugin-sqlite
119119

120120
Use the plugin from JavaScript:
121121

122+
Add the plugin permission to your capabilities file `src-tauri/capabilities/default.json`:
123+
124+
```json
125+
{
126+
"permissions": [
127+
"core:default",
128+
"sqlite:default"
129+
]
130+
}
131+
```
132+
122133
```typescript
123134
// TODO: Add real examples once we have decided on the plugin API
124135
import { hello } from '@silvermine/tauri-plugin-sqlite';

0 commit comments

Comments
 (0)