Skip to content

Commit 941194e

Browse files
Merge pull request #2 from journeyapps/feature/concurrent-transactions
[Feature] Concurrent connections & transactions
2 parents 6025fd0 + 8c4c68a commit 941194e

File tree

187 files changed

+12575
-10743
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+12575
-10743
lines changed

.changeset/olive-chicken-provide.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@journeyapps/react-native-quick-sqlite': patch
3+
---
4+
5+
Added concurrent read/write connection support.

.envrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
layout node
2+
use node
3+
[ -f .env ] && dotenv

.github/workflows/build-packages.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@ jobs:
1717
uses: actions/setup-node@v2
1818
with:
1919
node-version: 18
20-
cache: "yarn"
20+
cache: 'yarn'
2121

2222
- name: Setup Yarn
2323
run: |
2424
npm install -g yarn
2525
echo "Yarn version: $(yarn -v)"
2626
27+
# Build is triggered in prepare script
2728
- name: Install Dependencies
2829
run: yarn install --frozen-lockfile
29-
30-
- name: Build
31-
run: yarn build

.github/workflows/dev-packages.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,12 @@ jobs:
2424
echo "Yarn version: $(yarn -v)"
2525
echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc
2626
27+
# This also builds the package as part of the post install
2728
- name: Install Dependencies
2829
run: yarn install --frozen-lockfile
2930

30-
- name: Build
31-
run: yarn build
32-
3331
- name: Development Version
3432
run: |
33+
node ./scripts/dev-package-pre-version.js
3534
yarn changeset version --no-git-tag --snapshot dev
3635
yarn changeset publish --tag dev

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
with:
2121
node-version: 18
2222

23+
# This also builds the package as part of the post install
2324
- name: Install Dependencies
2425
run: yarn
2526

.github/workflows/test.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
test:
8+
name: Test
9+
runs-on: macos-latest
10+
env:
11+
AVD_NAME: macOS-avd-x86_64-29
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
persist-credentials: false
16+
17+
- name: Gradle Cache
18+
uses: gradle/gradle-build-action@v2
19+
20+
- name: AVD Cache
21+
uses: actions/cache@v3
22+
id: avd-cache
23+
with:
24+
path: |
25+
~/.android/avd/*
26+
~/.android/adb*
27+
key: avd-29
28+
29+
- name: Setup NodeJS
30+
uses: actions/setup-node@v2
31+
with:
32+
node-version: 18
33+
cache: 'yarn'
34+
35+
- name: Set up JDK 11
36+
uses: actions/setup-java@v3
37+
with:
38+
java-version: 11
39+
distribution: 'adopt'
40+
cache: 'gradle'
41+
42+
- name: Setup Yarn
43+
run: |
44+
npm install -g yarn
45+
echo "Yarn version: $(yarn -v)"
46+
47+
- name: Install Dependencies
48+
run: yarn install --frozen-lockfile
49+
50+
- name: Configure Test App
51+
run: |
52+
cd tests
53+
yarn install --frozen-lockfile
54+
55+
- name: create AVD and generate snapshot for caching
56+
if: steps.avd-cache.outputs.cache-hit != 'true'
57+
uses: reactivecircus/android-emulator-runner@v2
58+
with:
59+
api-level: 29
60+
force-avd-creation: false
61+
target: google_apis
62+
arch: x86_64
63+
disable-animations: false
64+
avd-name: $AVD_NAME
65+
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
66+
script: echo "Generated AVD snapshot for caching."
67+
68+
- name: Run connected tests
69+
uses: ReactiveCircus/android-emulator-runner@v2
70+
with:
71+
api-level: 29
72+
target: google_apis
73+
arch: x86_64
74+
avd-name: $AVD_NAME
75+
script: cd tests && yarn test --avdName $AVD_NAME

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ node_modules/
5959
npm-debug.log
6060
yarn-debug.log
6161
yarn-error.log
62+
tsconfig.tsbuildinfo
6263

6364
# BUCK
6465
buck-out/

.mtslconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"ignore_dirs":[".git","node_modules","tests"]}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.12.0

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.6
1+
2.6.10

0 commit comments

Comments
 (0)