Use SQLite with Diesel ORM in your web apps!
Add sqlite-web
to your project. SQLite is automatically bundled with the
library.
[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 this example app
Look in examples/web-sqlite
for a working example!
- run
yarn
in the root of the repo - navigate to
examples/web-sqlite
- make sure the
miniserve
crate is installed locally - run
./build.sh && ./run.sh
- navigate to
localhost:8080
yarn
yarn build
cargo build --target wasm32-unknown-unknown
yarn test:chrome
yarn test:firefox
yarn test:safari
Navigate to http://localhost:8000
to observe test output.
yarn test:chrome:headless
yarn test:firefox:headless
yarn test:safari:headless
PR Title should follow conventional 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 a breaking 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, for instance if a PR touched only database-related code, a PR title may be:
feat(db): Add SQLCipher plaintext_header support to database connection