- Notifications
You must be signed in to change notification settings - Fork7
A SQLite WebAssembly backend for Diesel
License
xmtp/sqlite-web-rs
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Caution
This repo is no longer maintained. Prefer to useSpxg/sqlite-wasm-rs directly withdiesel
The documentation below is provided for historical reference only.
Use SQLite with Diesel ORM in your web apps!
Addsqlite-web to your project. SQLite is automatically bundled with thelibrary.
[dependencies]diesel = {version ="2.2" }sqlite-web = {git ="https://github.com/xmtp/sqlite-web-rs",branch ="main" }wasm-bindgen ="0.2"
Try out SQLite on the web with rust at thisexample app
Look inexamples/web-sqlite for a working example!
- run
yarnin the root of the repo - navigate to
examples/web-sqlite - make sure the
miniservecrate isinstalled locally - run
./build.sh && ./run.sh - navigate to
localhost:8080
yarn
yarn build
cargo build --target wasm32-unknown-unknown
yarn test:chromeyarn test:firefoxyarn test:safari
Navigate tohttp://localhost:8000 to observe test output.
yarn test:chrome:headlessyarn test:firefox:headlessyarn test:safari:headless
PR Title should followconventional commits format
In short, if should be one of:
fix:represents bug fixes, and results in a SemVer patch bump.feat:represents a new feature, and results in a SemVer minor bump.<prefix>!:(e.g. feat!:): represents abreaking change (indicated by the!) and results in a SemVer major bump.doc:documentation changesperf:changes related to performancerefactor:a refactorstyle:test:
You can add extra context to conventional commits by using parantheses, forinstance if a PR touched only database-related code, a PR title may be:
feat(db): Add SQLCipher plaintext_header support to database connection
About
A SQLite WebAssembly backend for Diesel
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.