https://github.com/stainless-steel/sqlite3-sys
Bindings to SQLite
https://github.com/stainless-steel/sqlite3-sys
bindings database
Last synced: about 1 year ago
JSON representation
Bindings to SQLite
- Host: GitHub
- URL: https://github.com/stainless-steel/sqlite3-sys
- Owner: stainless-steel
- License: other
- Created: 2015-05-28T19:20:05.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2025-03-28T10:51:48.000Z (about 1 year ago)
- Last Synced: 2025-03-28T11:04:02.096Z (about 1 year ago)
- Topics: bindings, database
- Language: Rust
- Homepage:
- Size: 118 KB
- Stars: 20
- Watchers: 3
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# sqlite3-sys [![Package][package-img]][package-url] [![Documentation][documentation-img]][documentation-url] [![Build][build-img]][build-url]
The package provides bindings to [SQLite].
The following Cargo features are supported:
* `linkage` creates a dependency on `sqlite3-src`, which links to a suitable
SQLite library;
* `bundled` compiles SQLite from the source code, ignoring any libraries that
might already be installed; and
* `encryption` enables bindings to the [SQLite Encryption Extension], which is
closed source and hence requires purchasing a license and installing SQLite
manually.
## Development
```shell
cargo install bindgen-cli
git clone https://github.com/stainless-steel/sqlite3-src.git --recursive
bindgen --use-core sqlite3-src/source/sqlite3.h \
| sed -E "s/^pub const ([0-9A-Z_]+): u32/pub const \1: ::core::ffi::c_int/" \
> src/base.rs
```
## Contribution
Your contribution is highly appreciated. Do not hesitate to open an issue or a
pull request. Note that any contribution submitted for inclusion in the project
will be licensed according to the terms given in [LICENSE.md](LICENSE.md).
[SQLite]: https://www.sqlite.org
[SQLite Encryption Extension]: https://www.sqlite.org/see/doc/release/www/index.wiki
[build-img]: https://github.com/stainless-steel/sqlite3-sys/workflows/build/badge.svg
[build-url]: https://github.com/stainless-steel/sqlite3-sys/actions/workflows/build.yml
[documentation-img]: https://docs.rs/sqlite3-sys/badge.svg
[documentation-url]: https://docs.rs/sqlite3-sys
[package-img]: https://img.shields.io/crates/v/sqlite3-sys.svg
[package-url]: https://crates.io/crates/sqlite3-sys