@powersync/op-sqlite 0.6.1 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -5
- package/android/build.gradle +1 -1
- package/lib/commonjs/db/SqliteOptions.js +2 -0
- package/lib/commonjs/db/SqliteOptions.js.map +1 -1
- package/lib/module/db/SqliteOptions.js +2 -0
- package/lib/module/db/SqliteOptions.js.map +1 -1
- package/lib/typescript/commonjs/tsconfig.build.tsbuildinfo +1 -1
- package/lib/typescript/module/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/powersync-op-sqlite.podspec +1 -1
package/README.md
CHANGED
|
@@ -6,10 +6,6 @@ This package (`packages/powersync-op-sqlite`) enables using [OP-SQLite](https://
|
|
|
6
6
|
|
|
7
7
|
If you are not yet familiar with PowerSync, please see the [PowerSync React Native SDK README](https://github.com/powersync-ja/powersync-js/tree/main/packages/react-native) for more information.
|
|
8
8
|
|
|
9
|
-
## Beta Release
|
|
10
|
-
|
|
11
|
-
This package is currently in a beta release.
|
|
12
|
-
|
|
13
9
|
## Installation
|
|
14
10
|
|
|
15
11
|
Follow the installation instructions for the [React Native SDK](https://github.com/powersync-ja/powersync-js/tree/main/packages/react-native) if you haven't yet set up PowerSync in your project. However, note that this package cannot be installed alongside `@journeyapps/react-native-quick-sqlite`. Skip the step about installing it as a peer dependency, or uninstall it if it is already installed.
|
|
@@ -45,7 +41,7 @@ this.powersync = new PowerSyncDatabase({ database: factory, schema: AppSchema })
|
|
|
45
41
|
|
|
46
42
|
### Encryption with SQLCipher
|
|
47
43
|
|
|
48
|
-
To enable SQLCipher you need to add the following configuration option to your application's `package.json`
|
|
44
|
+
To enable SQLCipher you need to add the following configuration option to your application's `package.json`. Note that for [monorepos](https://op-engineering.github.io/op-sqlite/docs/installation) you may have to add this configuration to the monorepo root `package.json` instead, this depends on where your package manager tool hoists modules.
|
|
49
45
|
|
|
50
46
|
```json
|
|
51
47
|
{
|
package/android/build.gradle
CHANGED
|
@@ -107,7 +107,7 @@ repositories {
|
|
|
107
107
|
def kotlin_version = getExtOrDefault("kotlinVersion")
|
|
108
108
|
|
|
109
109
|
dependencies {
|
|
110
|
-
implementation 'co.powersync:powersync-sqlite-core:0.
|
|
110
|
+
implementation 'co.powersync:powersync-sqlite-core:0.4.0'
|
|
111
111
|
// For < 0.71, this will be from the local maven repo
|
|
112
112
|
// For > 0.71, this will be replaced by `com.facebook.react:react-android:$version` by react gradle plugin
|
|
113
113
|
//noinspection GradleDynamicVersion
|
|
@@ -12,6 +12,8 @@ let TemporaryStorageOption = exports.TemporaryStorageOption = /*#__PURE__*/funct
|
|
|
12
12
|
// This library is written with WAL mode in mind - other modes may cause
|
|
13
13
|
// unexpected locking behavior.
|
|
14
14
|
var SqliteJournalMode = /*#__PURE__*/function (SqliteJournalMode) {
|
|
15
|
+
// Use a write-ahead log instead of a rollback journal.
|
|
16
|
+
// This provides good performance and concurrency.
|
|
15
17
|
SqliteJournalMode["wal"] = "WAL";
|
|
16
18
|
SqliteJournalMode["delete"] = "DELETE";
|
|
17
19
|
SqliteJournalMode["truncate"] = "TRUNCATE";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TemporaryStorageOption","exports","SqliteJournalMode","SqliteSynchronous","DEFAULT_SQLITE_OPTIONS","journalMode","wal","synchronous","normal","journalSizeLimit","cacheSizeKb","temporaryStorage","MEMORY","lockTimeoutMs","encryptionKey","extensions"],"sourceRoot":"../../../src","sources":["db/SqliteOptions.ts"],"mappings":";;;;;;IAyDYA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,0BAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA,OAKlC;AACA;AACA;AAAA,IACKE,iBAAiB,0BAAjBA,iBAAiB;
|
|
1
|
+
{"version":3,"names":["TemporaryStorageOption","exports","SqliteJournalMode","SqliteSynchronous","DEFAULT_SQLITE_OPTIONS","journalMode","wal","synchronous","normal","journalSizeLimit","cacheSizeKb","temporaryStorage","MEMORY","lockTimeoutMs","encryptionKey","extensions"],"sourceRoot":"../../../src","sources":["db/SqliteOptions.ts"],"mappings":";;;;;;IAyDYA,sBAAsB,GAAAC,OAAA,CAAAD,sBAAA,0BAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA,OAKlC;AACA;AACA;AAAA,IACKE,iBAAiB,0BAAjBA,iBAAiB;EACpB;EACA;EAFGA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA,EAAjBA,iBAAiB,SAWtB;AAAA,IACKC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA,EAAjBA,iBAAiB;AAMf,MAAMC,sBAA+C,GAAAH,OAAA,CAAAG,sBAAA,GAAG;EAC7DC,WAAW,EAAEH,iBAAiB,CAACI,GAAG;EAClCC,WAAW,EAAEJ,iBAAiB,CAACK,MAAM;EACrCC,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;EACjCC,WAAW,EAAE,EAAE,GAAG,IAAI;EACtBC,gBAAgB,EAAEX,sBAAsB,CAACY,MAAM;EAC/CC,aAAa,EAAE,KAAK;EACpBC,aAAa,EAAE,IAAI;EACnBC,UAAU,EAAE;AACd,CAAC","ignoreList":[]}
|
|
@@ -10,6 +10,8 @@ export let TemporaryStorageOption = /*#__PURE__*/function (TemporaryStorageOptio
|
|
|
10
10
|
// This library is written with WAL mode in mind - other modes may cause
|
|
11
11
|
// unexpected locking behavior.
|
|
12
12
|
var SqliteJournalMode = /*#__PURE__*/function (SqliteJournalMode) {
|
|
13
|
+
// Use a write-ahead log instead of a rollback journal.
|
|
14
|
+
// This provides good performance and concurrency.
|
|
13
15
|
SqliteJournalMode["wal"] = "WAL";
|
|
14
16
|
SqliteJournalMode["delete"] = "DELETE";
|
|
15
17
|
SqliteJournalMode["truncate"] = "TRUNCATE";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TemporaryStorageOption","SqliteJournalMode","SqliteSynchronous","DEFAULT_SQLITE_OPTIONS","journalMode","wal","synchronous","normal","journalSizeLimit","cacheSizeKb","temporaryStorage","MEMORY","lockTimeoutMs","encryptionKey","extensions"],"sourceRoot":"../../../src","sources":["db/SqliteOptions.ts"],"mappings":";;AAyDA,WAAYA,sBAAsB,0BAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA;;AAKlC;AACA;AACA;AAAA,IACKC,iBAAiB,0BAAjBA,iBAAiB;
|
|
1
|
+
{"version":3,"names":["TemporaryStorageOption","SqliteJournalMode","SqliteSynchronous","DEFAULT_SQLITE_OPTIONS","journalMode","wal","synchronous","normal","journalSizeLimit","cacheSizeKb","temporaryStorage","MEMORY","lockTimeoutMs","encryptionKey","extensions"],"sourceRoot":"../../../src","sources":["db/SqliteOptions.ts"],"mappings":";;AAyDA,WAAYA,sBAAsB,0BAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA;;AAKlC;AACA;AACA;AAAA,IACKC,iBAAiB,0BAAjBA,iBAAiB;EACpB;EACA;EAFGA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA,EAAjBA,iBAAiB,SAWtB;AAAA,IACKC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA,EAAjBA,iBAAiB;AAMtB,OAAO,MAAMC,sBAA+C,GAAG;EAC7DC,WAAW,EAAEH,iBAAiB,CAACI,GAAG;EAClCC,WAAW,EAAEJ,iBAAiB,CAACK,MAAM;EACrCC,gBAAgB,EAAE,CAAC,GAAG,IAAI,GAAG,IAAI;EACjCC,WAAW,EAAE,EAAE,GAAG,IAAI;EACtBC,gBAAgB,EAAEV,sBAAsB,CAACW,MAAM;EAC/CC,aAAa,EAAE,KAAK;EACpBC,aAAa,EAAE,IAAI;EACnBC,UAAU,EAAE;AACd,CAAC","ignoreList":[]}
|