react-sqlite-hook@latest
Capacitor 3
A React Hook to help Capacitor developpers to use @capacitor-community/sqlite@latest
plugin in React or Ionic/React applications
@LATEST For Capacitor 3 (Master)
The Capacitor3
react-sqlite-hook interfacing the @capacitor-community/sqlite@latest
@REFACTOR REFACTOR 🚀 (Move to branch 2.9.x)
The refactor
react-sqlite-hook interfacing the @capacitor-community/sqlite@refactor
@INITIAL 🛑 (Move to branch 2.4.x)
The initial
react-sqlite-hook interfacing the @capacitor-community/sqlite@initial
. !!! The MAINTAINANCE is now STOPPED !!!
Maintainers
Maintainer | GitHub | Social |
---|
Quéau Jean Pierre | jepiqueau | |
Installation
npm install --save @capacitor-community/sqlite@next
npm install --save-dev react-sqlite-hook@next
Supported methods
Name | Android | iOS | Electron | Web |
---|
echo | ✅ | ✅ | ✅ | ✅ |
getPlatform | ✅ | ✅ | ✅ | ✅ |
getCapacitorSQLite | ✅ | ✅ | ✅ | ✅ |
addUpgradeStatement | ✅ | ✅ | ✅ | ✅ |
createConnection | ✅ | ✅ | ✅ | ✅ |
retrieveConnection | ✅ | ✅ | ✅ | ✅ |
retrieveAllConnections | ✅ | ✅ | ✅ | ✅ |
closeConnection | ✅ | ✅ | ✅ | ✅ |
closeAllConnections | ✅ | ✅ | ✅ | ✅ |
isConnection | ✅ | ✅ | ✅ | ✅ |
isDatabase | ✅ | ✅ | ✅ | ✅ |
getDatabaseList | ✅ | ✅ | ✅ | ✅ |
getMigratableDbList | ✅ | ✅ | ❌ | ❌ |
addSQLiteSuffix | ✅ | ✅ | ❌ | ❌ |
deleteOldDatabases | ✅ | ✅ | ❌ | ❌ |
importFromJson | ✅ | ✅ | ✅ | ✅ |
isJsonValid | ✅ | ✅ | ✅ | ✅ |
copyFromAssets | ✅ | ✅ | ✅ | ✅ |
checkConnectionsConsistency | ✅ | ✅ | ✅ | ✅ |
isSecretStored | ✅ | ✅ | ❌ | ❌ |
setEncryptionSecret | ✅ | ✅ | ❌ | ❌ |
changeEncryptionSecret | ✅ | ✅ | ❌ | ❌ |
removeListeners | ✅ | ✅ | ✅ | ✅ |
initWebStore | ❌ | ❌ | ❌ | ✅ |
saveToStore | ❌ | ❌ | ❌ | ✅ |
Supported listeners
Name | Android | iOS | Electron | Web |
---|
onProgressImport | ✅ | ✅ | 🚧 | ✅ |
onProgressExport | ✅ | ✅ | 🚧 | ✅ |
Documentation
Applications demonstrating the use of the plugin and the react hook
Usage
The usage of react-sqlite-hook
is demonstrated in
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!