-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use sqlite.org/sqlite, revert to sync api (#988)
* use official sqlite bindings * PORTED * can establish conn * getters/setters * constant from JS workaround * r2d2 connection * add custom allocator for faster memory * memory optimization, tests * clean up dependencies * clean * workflow * readme * dep pruning * readme change * readme
- Loading branch information
Showing
33 changed files
with
16,980 additions
and
4,458 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,32 @@ | ||
name: Test DIesel WASM Backend | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
# only run tests when related changes are made | ||
paths: | ||
- ".github/workflows/test-workspace.yml" | ||
- "dev/**" | ||
- "diesel-wasm-sqlite/**" | ||
- "Cargo.toml" | ||
- "Cargo.lock" | ||
- "rust-toolchain" | ||
jobs: | ||
test: | ||
name: Test | ||
runs-on: warp-ubuntu-latest-x64-16x | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Update rust toolchains | ||
run: rustup update | ||
- name: Install wasm-pack | ||
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh | ||
- name: Cache | ||
uses: Swatinem/rust-cache@v2 | ||
with: | ||
workspaces: | | ||
. | ||
- name: Run cargo test on main workspace | ||
run: wasm-pack test --manifest-path diesel-wasm-sqlite/Cargo.toml --features test-util --features unsafe-debug-query |
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 |
---|---|---|
|
@@ -15,6 +15,7 @@ | |
"ctor": ["ctor"], | ||
"tokio": ["test"], | ||
"diesel": ["table"], | ||
"wasm-bindgen": ["wasm-bindgen"], | ||
} | ||
} | ||
}, | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.