@capacitor-community/sqlite
Advanced tools
Comparing version 2.4.3 to 2.4.4
@@ -0,1 +1,14 @@ | ||
## 2.4.4 (2020-12-26) | ||
### Chore | ||
- update to @capacitor/core@2.4.4 | ||
### Bug Fixes | ||
- Fix README | ||
- Fix setSyncDate (iOS) | ||
- Fix exportToJson (Android) | ||
- Fix lastId to Int64 (iOS) | ||
## 2.4.3 (2020-12-19) | ||
@@ -2,0 +15,0 @@ |
@@ -190,3 +190,3 @@ declare module '@capacitor/core' { | ||
* Set the synchronization date | ||
* | ||
* Format yyyy-MM-dd'T'HH:mm:ss.SSSZ | ||
*/ | ||
@@ -193,0 +193,0 @@ syncdate?: string; |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=definitions.js.map |
@@ -159,2 +159,4 @@ var capacitorPlugin = (function (exports, core) { | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
return exports; | ||
@@ -161,0 +163,0 @@ |
@@ -821,3 +821,3 @@ import { __awaiter } from "tslib"; | ||
let isStrfTime = false; | ||
if (sstr.includes("strftime")) | ||
if (sstr.includes('strftime')) | ||
isStrfTime = true; | ||
@@ -828,4 +828,4 @@ let sch = sstr.replace(/\n/g, '').split(','); | ||
for (let j = 0; j < sch.length; j++) { | ||
if (sch[j].includes("strftime")) { | ||
nSch.push(sch[j] + "," + sch[j + 1]); | ||
if (sch[j].includes('strftime')) { | ||
nSch.push(sch[j] + ',' + sch[j + 1]); | ||
j++; | ||
@@ -832,0 +832,0 @@ } |
@@ -190,3 +190,3 @@ declare module '@capacitor/core' { | ||
* Set the synchronization date | ||
* | ||
* Format yyyy-MM-dd'T'HH:mm:ss.SSSZ | ||
*/ | ||
@@ -193,0 +193,0 @@ syncdate?: string; |
@@ -0,1 +1,2 @@ | ||
export {}; | ||
//# sourceMappingURL=definitions.js.map |
{ | ||
"name": "@capacitor-community/sqlite", | ||
"version": "2.4.3", | ||
"version": "2.4.4", | ||
"description": "Capacitor SQLite Plugin", | ||
@@ -23,22 +23,22 @@ "homepage": "https://github.com/capacitor-community/sqlite", | ||
"devDependencies": { | ||
"@capacitor/android": "^2.4.3", | ||
"@capacitor/core": "^2.4.3", | ||
"@capacitor/docgen": "0.0.10", | ||
"@capacitor/ios": "^2.4.3", | ||
"@ionic/prettier-config": "^1.0.0", | ||
"@ionic/swiftlint-config": "^1.1.1", | ||
"@capacitor/android": "^2.4.4", | ||
"@capacitor/core": "^2.4.4", | ||
"@capacitor/docgen": "0.0.14", | ||
"@capacitor/ios": "^2.4.4", | ||
"@ionic/prettier-config": "^1.0.1", | ||
"@ionic/swiftlint-config": "^1.1.2", | ||
"@rollup/plugin-node-resolve": "^9.0.0", | ||
"@types/node": "^12.12.62", | ||
"electron": "^11.0.2", | ||
"husky": "^4.2.5", | ||
"np": "^6.3.2", | ||
"prettier": "^2.0.5", | ||
"prettier-plugin-java": "^0.8.1", | ||
"pretty-quick": "^2.0.1", | ||
"rimraf": "^3.0.0", | ||
"rollup": "^2.28.1", | ||
"@types/node": "^12.19.11", | ||
"electron": "^11.1.1", | ||
"husky": "^4.3.6", | ||
"np": "^7.0.0", | ||
"prettier": "^2.2.1", | ||
"prettier-plugin-java": "^0.8.3", | ||
"pretty-quick": "^2.0.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.35.1", | ||
"rollup-plugin-node-resolve": "^5.2.0", | ||
"swiftlint": "^1.0.1", | ||
"tslib": "^1.13.0", | ||
"typescript": "^3.9.6" | ||
"tslib": "^1.14.1", | ||
"typescript": "^4.0.5" | ||
}, | ||
@@ -51,3 +51,3 @@ "husky": { | ||
"peerDependencies": { | ||
"@capacitor/core": "^2.4.3" | ||
"@capacitor/core": "^2.4.4" | ||
}, | ||
@@ -54,0 +54,0 @@ "files": [ |
@@ -16,6 +16,52 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p> | ||
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> | ||
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-1-orange?style=flat-square" /></a> | ||
<a href="#contributors-"><img src="https://img.shields.io/badge/all%20contributors-3-orange?style=flat-square" /></a> | ||
<!-- ALL-CONTRIBUTORS-BADGE:END --> | ||
</p> | ||
<br> | ||
## REFACTOR 🚀 | ||
A refactoring has been started more than a month ago to reach the following objectives: | ||
- multiple database connections | ||
- db connector allowing for easy commands `db.open(), db.close, ...` | ||
- improve the response time of the encrypted database by removing the internal open and close database for each sqlite query | ||
- moving to the latest `androidx.sqlite.db.xxx` | ||
- offering encryption for Electron platform by using `@journeyapps/sqlcipher` | ||
- cleaning and aligning the code between platforms | ||
- allowing developers to develop easily `typeorm` or `spatialite` drivers. | ||
This was discussed lengthly in issue#1 and issue#52 | ||
It is now available in a beta release `2.9.0-beta.1` for all platforms (Android, iOS & Electron). | ||
Developers are encouraged to start looking at it and using it as this will have some impacts on yours developments. The interface to the plugin is now achieved through the use of connection wrappers | ||
- [API_Connection_Wrapper_Documentation](https://github.com/capacitor-community/sqlite/blob/refactor/docs/APIConnection.md) | ||
- [API_DB_Connection_Wrapper_Documentation](https://github.com/capacitor-community/sqlite/blob/refactor/docs/APIDBConnection.md) | ||
As you will see it is a `Major`change and the release will become a `3.0.0` as soon as `capacitor@3.0.0` will be released. So both interfaces to the plugin will be kept and maintained to that stage, after this, the `refactor interface` will be released as the master and maintained. | ||
The test has been achieved on: | ||
- a [Ionic/Angular app](#ionic/angular) | ||
- a [Ionic/React app](#ionic/react) | ||
Other frameworks will be tested later | ||
- Ionic/Vue will require an update of the `vue-sqlite-hook`. | ||
- Stencil | ||
When you will find issues, please report them with the `REFACTOR` word at the start of the issue title. | ||
To install it | ||
```bash | ||
npm i --save @capacitor-community/sqlite@refactor | ||
``` | ||
Hope you will enjoy it. | ||
## Maintainers | ||
@@ -27,2 +73,10 @@ | ||
## Browser Support | ||
The plugin follows the guidelines from the `Capacitor Team`, | ||
- [Capacitor Browser Support](https://capacitorjs.com/docs/v3/web#browser-support) | ||
meaning that it will not work in IE11 without additional JavaScript transformations, e.g. with [Babel](https://babeljs.io/). | ||
## Installation | ||
@@ -59,3 +113,2 @@ | ||
new ArrayList<Class<? extends Plugin>>() { | ||
{ | ||
@@ -62,0 +115,0 @@ // Additional plugins you've installed go here |
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 too big to display
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
2323032
9509
372