Skip to content

powersync-sqlite-core 0.3.0 #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/actions/build-wasm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ runs:
shell: bash
run: |
brew install cmake
brew install llvm
brew install llvm@18
brew install binaryen
curl -sL https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/libclang_rt.builtins-wasm32-wasi-22.0.tar.gz | \
tar x -zf - -C /opt/homebrew/opt/llvm/lib/clang/18*
tar x -zf - -C /opt/homebrew/opt/llvm@18/lib/clang/18*
curl -sS -L https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-22/wasi-sysroot-22.0.tar.gz | \
sudo tar x -zf - -C /opt
- name: Install Rust Nightly
Expand All @@ -32,7 +32,7 @@ runs:
- name: Set environment variable
shell: bash
run: |
echo "/opt/homebrew/opt/llvm/bin" >> $GITHUB_PATH
echo "/opt/homebrew/opt/llvm@18/bin" >> $GITHUB_PATH
- name: Flutter pub get
working-directory: sqlite3
shell: bash
Expand All @@ -43,5 +43,5 @@ runs:
working-directory: sqlite3
shell: bash
run: |
cmake -Dwasi_sysroot=/opt/wasi-sysroot -Dclang=/opt/homebrew/opt/llvm/bin/clang -S assets/wasm -B .dart_tool/sqlite3_build --toolchain toolchain.cmake
cmake -Dwasi_sysroot=/opt/wasi-sysroot -Dclang=/opt/homebrew/opt/llvm@18/bin/clang -S assets/wasm -B .dart_tool/sqlite3_build --toolchain toolchain.cmake
cmake --build .dart_tool/sqlite3_build/ -t output -j
2 changes: 1 addition & 1 deletion sqlite3/assets/wasm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ add_custom_target(
)

base_sqlite3_target(sqlite3_debug)
file(DOWNLOAD https://raw.githubusercontent.com/sqlite/sqlite/master/src/test_vfstrace.c "${CMAKE_BINARY_DIR}/vfstrace.c")
file(DOWNLOAD https://raw.githubusercontent.com/sqlite/sqlite/version-3.44.0/src/test_vfstrace.c "${CMAKE_BINARY_DIR}/vfstrace.c")
target_sources(sqlite3_debug PRIVATE "${CMAKE_BINARY_DIR}/vfstrace.c")
target_compile_options(sqlite3_debug PRIVATE -g)
target_compile_definitions(sqlite3_debug PRIVATE SQLITE_ENABLE_VFSTRACE SQLITE_ENABLE_API_ARMOR)
Expand Down
2 changes: 1 addition & 1 deletion sqlite3/powersync-sqlite-core
Submodule powersync-sqlite-core updated 40 files
+23 −0 .cargo/config.toml
+0 −6 .github/workflows/android.yml
+0 −2 .github/workflows/ios.yml
+0 −2 .github/workflows/linux.yml
+42 −0 .github/workflows/macos.yml
+21 −6 .github/workflows/release.yml
+19 −4 .github/workflows/tests.yml
+20 −0 .github/workflows/wasm.yml
+0 −2 .github/workflows/windows.yml
+4 −4 Cargo.lock
+1 −1 Cargo.toml
+3 −2 RELEASING.md
+37 −25 android/build.gradle.kts
+1 −1 android/gradle/wrapper/gradle-wrapper.properties
+7 −0 android/src/AndroidManifest.xml
+9 −0 android/src/prefab/modules/powersync/include/powersync.h
+7 −0 android/src/prefab/modules/powersync/libs/android.arm64-v8a/abi.json
+7 −0 android/src/prefab/modules/powersync/libs/android.armeabi-v7a/abi.json
+7 −0 android/src/prefab/modules/powersync/libs/android.x86/abi.json
+7 −0 android/src/prefab/modules/powersync/libs/android.x86_64/abi.json
+4 −0 android/src/prefab/modules/powersync/module.json
+6 −0 android/src/prefab/prefab.json
+2 −2 build-pod.sh
+3 −14 crates/core/src/checkpoint.rs
+1 −0 crates/core/src/lib.rs
+287 −0 crates/core/src/migrations.rs
+105 −119 crates/core/src/operations.rs
+61 −20 crates/core/src/schema_management.rs
+24 −17 crates/core/src/sync_local.rs
+100 −193 crates/core/src/view_admin.rs
+38 −40 crates/core/src/views.rs
+1 −0 dart/.gitignore
+15 −0 dart/README.md
+389 −0 dart/pubspec.lock
+10 −0 dart/pubspec.yaml
+179 −0 dart/test/migration_test.dart
+339 −0 dart/test/utils/migration_fixtures.dart
+50 −0 dart/test/utils/native_test_utils.dart
+110 −0 dart/test/utils/schema.dart
+1 −1 powersync-sqlite-core.podspec
Loading