-
Notifications
You must be signed in to change notification settings - Fork 331
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: reset modifications of
sqlite3_vtab
(#1027)
* Remove `libsql_module` field from `sqlite3_vtab` * remove `libsql_module` struct Also removed the associated functions `libsql_create_module_v2`, `libsql_create_module` functions'. The `libsql_module` had a function `xPreparedSql` which is now moved to `sqlite_module`. The `sqlite_module` might get changed in the upstream, so added some padding space for our custom functions * generate ffi bindings * Add a github workflow to test crsqlite * fix crsqlite: remove `pLibsqlModule` references * Add tests for sqlite-vss extension
- Loading branch information
Showing
14 changed files
with
134 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
name: Extensions Tests | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
merge_group: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
PROTOC_VERSION: 3.23.4 | ||
|
||
jobs: | ||
c-tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: libsql-sqlite3 | ||
name: CR SQLite C Tests | ||
|
||
steps: | ||
- uses: hecrj/setup-rust-action@v1 | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: build libsql | ||
run: | | ||
./configure | ||
make libsql | ||
- name: build | ||
run: | | ||
cd ext/crr | ||
make loadable | ||
- name: test | ||
run: | | ||
cd ext/crr | ||
make test | ||
rs-tests: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: libsql-sqlite3 | ||
name: CR SQLite Rust Tests | ||
|
||
steps: | ||
- uses: hecrj/setup-rust-action@v1 | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: build libsql | ||
run: | | ||
./configure | ||
make libsql | ||
- name: test | ||
run: | | ||
cd ext/crr/rs/core | ||
cargo test --features=loadable_extension | ||
extensions-tests: | ||
runs-on: ubuntu-latest | ||
name: Extensions Tests | ||
|
||
steps: | ||
- uses: hecrj/setup-rust-action@v1 | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: build libsql and ffi bindings | ||
run: | | ||
cargo xtask build-bundled | ||
- name: download extensions | ||
run: | | ||
cd libsql-sqlite3/test/rust_suite | ||
export VSS_VERSION="v0.1.2" | ||
wget https://github.com/asg017/sqlite-vss/releases/download/$VSS_VERSION/sqlite-vss-$VSS_VERSION-loadable-linux-x86_64.tar.gz | ||
tar -xvf sqlite-vss-$VSS_VERSION-loadable-linux-x86_64.tar.gz -C src | ||
- name: test | ||
run: | | ||
cd libsql-sqlite3/test/rust_suite | ||
cargo test --features extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.