Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
/sqlite-web-rsPublic archive

A SQLite WebAssembly backend for Diesel

License

NotificationsYou must be signed in to change notification settings

xmtp/sqlite-web-rs

Status

Caution

This repo is no longer maintained. Prefer to useSpxg/sqlite-wasm-rs directly withdiesel

The documentation below is provided for historical reference only.

Diesel Backend for SQLite and WASM

Use SQLite with Diesel ORM in your web apps!

Quickstart

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 It Out!

Try out SQLite on the web with rust at thisexample app

Running the Example

Look inexamples/web-sqlite for a working example!

  • runyarn in the root of the repo
  • navigate toexamples/web-sqlite
  • make sure theminiserve crate isinstalled locally
  • run./build.sh && ./run.sh
  • navigate tolocalhost:8080

Contributing

Building

Install yarn dependencies

yarn

Build the SQLite/OPFS JavaScript Bundle

yarn build

Build the rust code

cargo build --target wasm32-unknown-unknown

Run tests (browser)

  • yarn test:chrome
  • yarn test:firefox
  • yarn test:safari

Navigate tohttp://localhost:8000 to observe test output.

Run tests (headless)

  • yarn test:chrome:headless
  • yarn test:firefox:headless
  • yarn test:safari:headless

Opening a Pull Request

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 changes
  • perf: changes related to performance
  • refactor: a refactor
  • style:
  • 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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp