1264 Commits

Author SHA1 Message Date
gwenn
79fae3d93c
Improve test coverage (#1490)
Improve test coverage
2024-04-01 10:11:07 +02:00
Austin Schey
269dd72a76 check errors from sqlite3_preupdate_old and sqlite3_preupdate_new 2024-03-31 08:47:03 -05:00
Austin Schey
ba392cf104 fix syntax 2024-03-31 08:06:33 -05:00
Austin Schey
41cf19030a minor changes to match other hooks 2024-03-31 08:04:09 -05:00
Austin Schey
0d56555875 Merge remote-tracking branch 'upstream/master' into preupdate_hook 2024-03-31 07:57:20 -05:00
gwenn
a0b410eb86
Use catch_unwind in init_auto_extension (#1489)
Use catch_unwind in init_auto_extension
2024-03-31 13:22:00 +02:00
gwenn
d8bcd4d28a
Check callbacks lifetime (#1052)
Check callbacks lifetime
2024-03-31 11:41:05 +02:00
gwenn
19b20e0fc3 Remove Ref/UnwindSafe constraint on FFI callback
As suggested here:
https://github.com/rusqlite/rusqlite/pull/1052#issuecomment-988455248
2024-03-31 11:11:19 +02:00
Austin Schey
475c2fc691 fix indentation 2024-03-30 12:53:52 -05:00
Austin Schey
dd92f1d6df add static lifetime bound and compile test 2024-03-30 12:45:52 -05:00
gwenn
57a3a8f62e
Add bindings to automatic extension loading API (#1487)
* Add bindings to automatic extension loading API

it doesn't seem possible to directly register an `AutoExtension`.
2024-03-30 17:01:44 +01:00
Austin Schey
fb50d45bdf remove extra lifetime 2024-03-30 10:49:12 -05:00
Austin Schey
b910eafee5 move preupdate hook to separate file 2024-03-30 06:15:58 -05:00
Austin Schey
45e9db3435 Merge remote-tracking branch 'midaslamb/preupdate_hook' into preupdate_hook 2024-03-30 06:07:36 -05:00
gwenn
381be988cc
Merge pull request #1230 from xpepermint/master
Respect missing values in session's conflict resolver
2024-03-29 09:24:46 +01:00
gwenn
25787021b7 Simplify code 2024-03-28 21:03:42 +01:00
gwenn
f6dd9c3a2c Always activate SQLITE_OPEN_EXRESCODE for SQLite >= 3.37.0 2024-03-28 20:55:15 +01:00
gwenn
a016ed111b Activate SQLITE_OPEN_EXRESCODE by default
I am not completly sure that it is fine to activate this flag with an old
SQLite version.
See http://sqlite.org/c3ref/open.html
> If the 3rd parameter to sqlite3_open_v2() is not one of the required combinations shown above optionally combined with other SQLITE_OPEN_* bits then the behavior is undefined.
2024-03-28 20:32:07 +01:00
gwenn
ed7434e958 Use C-string literals 2024-03-24 07:57:24 +01:00
gwenn
67bce659d0 Add test to Connection::backup/restore 2024-03-23 19:22:21 +01:00
gwenn
b23de4116a Remove test_busy_timeout 2024-03-23 18:18:11 +01:00
gwenn
80c834157b Fix test_busy_handler 2024-03-23 17:47:04 +01:00
gwenn
930e64a239 Fix Connection::db_name 2024-03-17 17:53:38 +01:00
gwenn
5d148358d6 Fix clippy warnings 2024-03-15 19:23:36 +01:00
gwenn
70c8c36832 Try to improve test coverage 2024-03-10 17:24:36 +01:00
gwenn
217354c093 Add binding to sqlite3_db_name 2024-03-10 16:57:30 +01:00
gwenn
3a44c47377 Fix clippy warnings 2024-03-10 12:00:34 +01:00
gwenn
87e324d720 Use CStr::to_str where possible 2024-03-10 11:53:29 +01:00
gwenn
a29fed8512 Add binding to sqlite3_is_interrupted 2024-03-10 10:17:03 +01:00
gwenn
ed061597d8 Try to fix warning
unused return value of `Rc::<T, A>::into_raw` that must be used
2024-03-10 09:22:23 +01:00
gwenn
cc9ecec3ad Merge remote-tracking branch 'origin/master' into clear_bindings 2024-03-09 18:28:15 +01:00
gwenn
19acb79e6b Fix clippy warning 2024-03-09 17:56:30 +01:00
gwenn
e4448b5647 Fix RawStatement#clear_bindings 2024-03-09 14:37:33 +01:00
François
c91face552 format 2024-02-27 15:02:46 +01:00
François
695651ec32 typo 2024-02-27 14:57:58 +01:00
François
87e5e192e5 test_total_changes 2024-02-27 14:53:50 +01:00
François
673a69d3c6 expose total_changes() 2024-02-27 02:16:15 +01:00
gwenn
cd5b780505 Remove obsolete codes and comments
Minimal SQLite version supported by rusqlite is 3.14
2024-02-25 14:30:34 +01:00
gwenn
1124d4363d Fix clippy warnings 2024-02-24 11:02:09 +01:00
gwenn
28125461c7
Merge pull request #1160 from gwenn/sub_type
Make possible to specify subtype of SQL function
2024-02-04 10:50:29 +01:00
John Vandenberg
7ce841cd63 Replace intentional typo with typoless equivalent 2024-02-01 17:44:01 +08:00
John Vandenberg
52b01e40b2 Fix a few typos 2024-02-01 16:46:59 +08:00
gwenn
f48c5781a1 Introduce SqlFnArg 2024-01-21 10:22:10 +01:00
gwenn
83d67d5a29 Test sub-type 2024-01-20 19:16:48 +01:00
gwenn
13399c5808 Fix window impl 2024-01-20 17:22:58 +01:00
gwenn
7ed8e0ef2f Introduce SqlFnOutput trait
To keep compatibility with existing code
2024-01-20 17:08:15 +01:00
gwenn
796358a312 Merge remote-tracking branch 'origin/master' into sub_type 2024-01-16 21:24:03 +01:00
Josh Stone
ef067b5eff Resolve FIXME to derive Debug for StatementCache 2024-01-09 15:57:41 -08:00
Yuri Astrakhan
68c3083e34
Add #[derive(Clone, Copy... on some bitflags / enum (#1396)
This will make it easier to use them, e.g. I won't need to re-create `FunctionFlags` for registering multiple similar functions.
2023-12-24 08:54:48 +01:00
gwenn
675a9981cf Apply patch
529c3c8430/src/rusqlite/debian/patches/fix-tests-unsigned-char.patch
2023-12-16 10:01:53 +01:00