Skip to content

Commit

Permalink
Merge pull request #381 from ws-rush/master
Browse files Browse the repository at this point in the history
Update configure plugin section
  • Loading branch information
jepiqueau authored Feb 26, 2023
2 parents 69e348b + 7f0c792 commit 03b1e7f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,37 @@ pnpm install --save sql.js
npx cap sync
```

then add plugin to main `capacitor.config.json` file:

```json
{
"appId": "com.example.app",
"appName": "cap",
"webDir": "dist",
"bundledWebRuntime": false,
"plugins": {
"CapacitorSQLite": {
"iosDatabaseLocation": "Library/CapacitorDatabase",
"iosIsEncryption": false,
"iosKeychainPrefix": "cap",
"iosBiometric": {
"biometricAuth": false,
"biometricTitle" : "Biometric login for capacitor sqlite"
},
"androidIsEncryption": false,
"androidBiometric": {
"biometricAuth" : false,
"biometricTitle" : "Biometric login for capacitor sqlite",
"biometricSubTitle" : "Log in using your biometric"
},
"electronWindowsLocation": "C:\\ProgramData\\CapacitorDatabases",
"electronMacLocation": "YOUR_VOLUME/CapacitorDatabases",
"electronLinuxLocation": "Databases"
}
}
}
```

## More Reading:

- [Releases](https://github.com/capacitor-community/sqlite/blob/master/info_releases.md)
Expand Down Expand Up @@ -101,6 +132,9 @@ npm install --save-dev @types/sqlite3

- on iOS, no further steps needed.

## full examples

- [vite-vue](https://github.com/jepiqueau/vite-vue-sqlite-app)

## Supported Methods by Platform

Expand Down

0 comments on commit 03b1e7f

Please sign in to comment.