Skip to content

Commit

Permalink
Use sqlite.org/sqlite, revert to sync api (#988)
Browse files Browse the repository at this point in the history
* 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
insipx authored Aug 26, 2024
1 parent 87dd959 commit f1274c0
Show file tree
Hide file tree
Showing 33 changed files with 16,980 additions and 4,458 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test-wasm.yml
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
1 change: 1 addition & 0 deletions diesel-wasm-sqlite/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"ctor": ["ctor"],
"tokio": ["test"],
"diesel": ["table"],
"wasm-bindgen": ["wasm-bindgen"],
}
}
},
Expand Down
226 changes: 79 additions & 147 deletions diesel-wasm-sqlite/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f1274c0

Please sign in to comment.