@capacitor-community/sqlite
Advanced tools
Comparing version 2.4.2-6 to 2.4.2-7
@@ -0,1 +1,11 @@ | ||
## 2.4.2-7 (2020-10-22) | ||
### Added Features | ||
- Add addUpgradeStatement for version upgrade (Android) | ||
### Bug Fixes | ||
- Fix README issue#47 | ||
## 2.4.2-6 (2020-10-16) | ||
@@ -2,0 +12,0 @@ |
@@ -109,3 +109,3 @@ declare module '@capacitor/core' { | ||
* @returns Promise<capSQLiteResult> | ||
* @since 2.4.2-6 iOS & Electron | ||
* @since 2.4.2-6 iOS & Electron 2.4.2-7 Android | ||
*/ | ||
@@ -112,0 +112,0 @@ addUpgradeStatement(options: capSQLiteUpgradeOptions): Promise<capSQLiteResult>; |
@@ -110,2 +110,3 @@ declare module '@capacitor/core' { | ||
* @since 2.4.2-6 iOS & Electron | ||
* @since 2.4.2-7 Android | ||
*/ | ||
@@ -112,0 +113,0 @@ addUpgradeStatement(options: capSQLiteUpgradeOptions): Promise<capSQLiteResult>; |
{ | ||
"name": "@capacitor-community/sqlite", | ||
"version": "2.4.2-6", | ||
"version": "2.4.2-7", | ||
"description": "Capacitor SQLite Plugin", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/capacitor-community/sqlite", |
@@ -133,3 +133,3 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p> | ||
| isDBExists | ✅ | ✅ | ✅ | ❌ | | ||
| addUpgradeStatement | ❌ | ✅ | ✅ | ❌ | | ||
| addUpgradeStatement | ✅ | ✅ | ✅ | ❌ | | ||
@@ -164,3 +164,3 @@ ## Documentation | ||
import { Plugins } from '@capacitor/core'; | ||
import * as CapacitorSQLPlugin from '@capacitor-community/sqlite'; | ||
import '@capacitor-community/sqlite'; | ||
const { CapacitorSQLite,Device } = Plugins; | ||
@@ -171,2 +171,3 @@ | ||
_sqlite: any; | ||
_platform: string | ||
@@ -177,9 +178,4 @@ ... | ||
const info = await Device.getInfo(); | ||
if (info.platform === "ios" || info.platform === "android") { | ||
this._sqlite = CapacitorSQLite; | ||
} else if(info.platform === "electron") { | ||
this._sqlite = CapacitorSQLPlugin.CapacitorSQLiteElectron; | ||
} else { | ||
this._sqlite = CapacitorSQLPlugin.CapacitorSQLite; | ||
} | ||
this._platform = info.platform; | ||
this._sqlite = CapacitorSQLite; | ||
@@ -280,5 +276,5 @@ } | ||
const info = await Device.getInfo(); | ||
this._sqlite = CapacitorSQLite; | ||
if (info.platform === "android") { | ||
this._sqlite = CapacitorSQLite; | ||
try { | ||
@@ -285,0 +281,0 @@ // Show request popup |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2536487
215
9375
315