gwenn
687aeef3b0
Introduce to_sqlite_error
...
643c0f699f
One small step to support creating loadable extension
2023-06-08 20:01:17 +02:00
Taylor C. Richberger
8545c5d011
add test for savepoint Commit or Rollback release
...
After a top-level savepoint exits on non-Ignore, the savepoint should
not be left on the stack.
2023-06-07 13:59:08 -06:00
gwenn
67d1e34eb4
Serialize and deserialize database
2023-06-05 19:56:23 +02:00
gwenn
5848c8c147
Draft of serialize API
2023-06-04 19:08:49 +02:00
gwenn
38bf316601
Merge pull request #1340 from gwenn/int_macro
...
Fix type of SQLITE_DESERIALIZE_*, SQLITE_PREPARE_*, SQLITE_SERIALIZE_*
2023-06-04 12:44:56 +02:00
gwenn
6e9d8eafde
Fix type of SQLITE_DESERIALIZE_*, SQLITE_PREPARE_*, SQLITE_SERIALIZE_*
2023-06-04 10:31:44 +00:00
gwenn
371e60ab6f
Merge pull request #1339 from gwenn/prepare_with_flags
...
Use SQLITE_PREPARE_PERSISTENT for CachedStatement
2023-06-03 11:38:28 +02:00
gwenn
fed1c1c165
Fix PrepFlags
2023-06-03 11:24:32 +02:00
gwenn
9d502c4995
Use SQLITE_PREPARE_PERSISTENT for CachedStatement
2023-06-03 11:17:19 +02:00
gwenn
8d6d59999d
Merge pull request #1338 from gwenn/non_minimal_cfg
...
Fix clippy warning
2023-06-03 07:28:11 +02:00
gwenn
602a868783
Fix Clippy warnings
2023-06-03 07:18:43 +02:00
gwenn
38691ca50b
Fix clippy warning
2023-06-03 07:02:44 +02:00
gwenn
581819f962
Merge pull request #1336 from gwenn/3.42.0
...
Add new constants introduced by SQLite 3.42.0
2023-05-31 11:34:38 +02:00
gwenn
0c7629ed70
Add new constants introduced by SQLite 3.42.0
2023-05-31 11:06:56 +02:00
gwenn
5e079e509c
Merge pull request #1313 from itsxaos/nonzero
...
Implement FromSql & ToSql for std::num::NonZero types
2023-05-31 10:53:40 +02:00
gwenn
4d7c41bf9a
Merge pull request #1335 from gwenn/3.42.0
...
Bump bundled SQLite version to 3.42.0
2023-05-31 10:48:54 +02:00
gwenn
72f9b0109f
Bump bundled SQLite version to 3.42.0
2023-05-31 08:30:58 +00:00
gwenn
00a36d3fe8
Merge pull request #1334 from rusqlite/dependabot/cargo/fallible-iterator-0.3
...
Update fallible-iterator requirement from 0.2 to 0.3
2023-05-29 10:08:54 +02:00
dependabot[bot]
434a63c66f
Update fallible-iterator requirement from 0.2 to 0.3
...
Updates the requirements on [fallible-iterator](https://github.com/sfackler/rust-fallible-iterator ) to permit the latest version.
- [Release notes](https://github.com/sfackler/rust-fallible-iterator/releases )
- [Changelog](https://github.com/sfackler/rust-fallible-iterator/blob/master/CHANGELOG.md )
- [Commits](https://github.com/sfackler/rust-fallible-iterator/compare/v0.2.0...v0.3.0 )
---
updated-dependencies:
- dependency-name: fallible-iterator
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-29 05:08:49 +00:00
Konstantin Shabanov
5534eb93c6
Improve wasm32-wasi support
...
[Starting from 3.41.0 SQLite has wasm32-wasi support out of the
box.][0]
- Set `-DSQLITE_THREADSAFE=0`. Fixes:
```
$ wasmtime target/wasm32-wasi/release/examples/persons.wasm
Error: failed to run main module `target/wasm32-wasi/release/examples/persons.wasm`
Caused by:
0: failed to instantiate "target/wasm32-wasi/release/examples/persons.wasm"
1: unknown import: `env::pthread_mutexattr_init` has not been defined
```
- Drop `-DSQLITE_OS_OTHER`. Fixes:
```
$ wasmtime target/wasm32-wasi/release/examples/persons.wasm
Error: failed to run main module `target/wasm32-wasi/release/examples/persons.wasm`
Caused by:
0: failed to instantiate "target/wasm32-wasi/release/examples/persons.wasm"
1: unknown import: `env::sqlite3_os_init` has not been defined
```
- [Add wasi specific build flags][1]
- Add basic example
- Also, add instructions how to run it against wasm32-wasi.
Using of file databases is also working, though `--mapdir` arg
should be provided to `wasmtime run`.
[0]: https://wasmlabs.dev/articles/sqlite-wasi-support/
[1]: https://github.com/vmware-labs/webassembly-language-runtimes/blob/main/libs/sqlite/wasi-patches/wlr-build.sh#L11
2023-05-25 22:26:56 +06:00
gwenn
24288d9073
Merge pull request #1330 from Benjins-automation/benjins-automated-https-upgrade
...
Upgrade http links to https in Cargo.toml
2023-05-22 10:52:50 +02:00
Benji Smith
f353c23122
Upgrade plain-HTTP links to HTTPS in Cargo.toml files
2023-05-20 18:28:29 -04:00
Taylor C. Richberger
88653ca62a
remove depth from Savepoint
...
Savepoints with the same name nest properly without issue. This doesn't
work with rusqlite unless savepoints are always released on drop.
2023-05-18 08:44:50 -06:00
gwenn
65e4be3a19
Merge pull request #1324 from nopjia/master
...
Add SQLITE_MAX_COLUMN compile-time option
2023-05-10 10:27:24 +02:00
Nop Jiarathanakul
4c6d915d0f
add SQLITE_MAX_COLUMN compile option
2023-05-09 13:19:25 -07:00
gwenn
1a82396f2e
Merge pull request #1321 from wasm-forge/master
...
fix compilation for target wasm32-wasi
2023-05-07 11:48:34 +02:00
Stanislav Golubtsov
ef4a0ac09d
fix compilation for target wasm32-wasi
2023-05-02 18:32:56 +02:00
gwenn
051dcf673d
Merge pull request #1318 from gwenn/clippy_
...
Fix clippy warnings
2023-04-22 17:09:43 +02:00
gwenn
697a333887
Rustfmt
2023-04-22 16:58:36 +02:00
gwenn
0f8d1aadc7
Fix clippy warnings
2023-04-22 16:53:13 +02:00
gwenn
13dc9df7b0
Merge pull request #1317 from icp1994/force-link-sys-sqlite
...
Force linking against system sqlite libs
2023-04-22 16:36:21 +02:00
gwenn
d5eafd6613
Merge pull request #1314 from kornelski/track_caller
...
Use track_caller for panicking methods
2023-04-17 19:46:20 +02:00
icp
b4604f2421
Force linking against system sqlite libs
...
This commit introduces new env var, LIBSQLITE3_SYS_USE_PKG_CONFIG,
which can be set to non-zero values to force building against sqlite
libraries from the system overriding bundled features.
2023-04-17 01:23:40 +05:30
gwenn
0e369ba878
Misc
2023-04-16 18:09:15 +02:00
gwenn
b59b0ddf2e
Bump sqlite3-parser version
2023-04-16 16:17:36 +02:00
Kornel
b6bf62db14
Use track_caller for panicking methods
2023-04-15 21:35:03 +01:00
gwenn
ef4ae94799
Merge pull request #1316 from gwenn/bindgen
...
Bump bindgen version
2023-04-14 21:24:35 +02:00
gwenn
1180a4f943
Fix clippy warning
2023-04-14 20:55:16 +02:00
gwenn
323331eae6
Bump bindgen version
2023-04-14 20:45:37 +02:00
gwenn
a927ce1bb6
Merge remote-tracking branch 'upstream/master' into captured_identifiers
2023-04-11 19:43:00 +02:00
xaos
3ea9333e78
Add missing tests for std::num::NonZero{I64, Isize, U64, Usize}
2023-04-05 08:34:01 +02:00
xaos
2e5db7b2a0
Test FromSql & ToSql for std::num::NonZero types
2023-04-05 05:03:52 +02:00
xaos
ce7cdfb5bc
Implement FromSql for std::num::NonZero types
2023-04-05 04:38:51 +02:00
xaos
00b88e37fe
Implement ToSql for std::num::NonZero types
2023-04-05 04:36:05 +02:00
xaos
88e5882de9
Fix missing ToSql asserts for isize, usize & u64
2023-04-05 03:44:46 +02:00
xaos
f6cd0a5384
Fix minor doc inaccuracy
2023-04-04 23:02:27 +02:00
gwenn
8ac4780526
Merge pull request #1310 from gwenn/sqlite3_auto_extension
...
Fix sqlite3_auto_extension xEntryPoint signature
2023-03-27 19:38:56 +02:00
gwenn
a1ef4b5b6d
Merge pull request #1311 from gwenn/0.29.0
...
Prepare next release
2023-03-26 10:44:08 +02:00
gwenn
8419b021bd
Prepare next release
2023-03-26 10:24:57 +02:00
gwenn
7dac07be13
Rustfmt
2023-03-25 16:15:05 +01:00