gwenn
cd0fc4e4f3
Use decode_result_raw instead of check
2024-11-10 19:28:01 +01:00
gwenn
3d85c79891
Use C string literal for database name
...
No alloc for "main" and "temp".
No alloc possible when the attached database name is known at compile time / a C
string literal can be usd.
No alloc when the database name is given by SQLite (`sqlite3_wal_hook`).
2024-11-10 16:56:03 +01:00
gwenn
da7e87f62e
Unnecessary path prefix
2024-10-27 14:20:40 +01:00
gwenn
a00acd23a6
Use #[expect(lint)] where possible
2024-09-05 20:51:58 +02:00
gwenn
0c3933b68c
clippy::use_self
2024-08-10 14:39:36 +02:00
gwenn
3810178be0
Fix test
2024-07-23 19:28:21 +02:00
gwenn
a53bcd4769
Prevent interrupt from non-owned connection
...
Fix #1546
2024-07-23 19:19:44 +02:00
Yuri Astrakhan
c32d7a79a2
Applied some spellchecker suggestions
2024-07-17 13:41:16 -04: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
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
a29fed8512
Add binding to sqlite3_is_interrupted
2024-03-10 10:17:03 +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
74c867d708
Merge remote-tracking branch 'origin/master' into loadable_extension
2023-10-16 18:56:03 +02:00
gwenn
c1eea9be00
Fix clippy warning: arc_with_non_send_sync - interrupt_lock
2023-10-11 18:30:34 +02:00
gwenn
1308cdaa9d
Loadable extension
2023-07-09 12:50:49 +02:00
gwenn
9d502c4995
Use SQLITE_PREPARE_PERSISTENT for CachedStatement
2023-06-03 11:17:19 +02:00
gwenn
38691ca50b
Fix clippy warning
2023-06-03 07:02:44 +02:00
gwenn
5a6f58acda
Fix code related to bitflags
2023-03-14 19:43:50 +01:00
Mark Hammond
9c2cc12b08
No longer panic if we fail to close the connection when dropping it.
2023-02-24 15:13:25 +11:00
gwenn
6d509afe49
Clippy
2022-10-28 19:02:49 +02:00
gwenn
6766d6a6cd
Remove old_sqlite
feature
...
And associated bindgen_3.6.8.rs
2022-08-30 13:05:47 -07:00
gwenn
6e740d0611
Change default minimal SQLite API version
...
From 3.6.8 to 3.14.0.
Use `old_sqlite` feature to keep 3.6.8 (or 3.7.16) as the minimal version.
Use `modern_sqlite` for SQLite API > 3.14.0.
Also remove old 3.6.23 and 3.7.7 bindings.
2022-08-30 13:05:47 -07:00
gwenn
618e9a1274
Clean code
...
Typos, deprecated code usages, ...
2022-05-29 13:33:51 +02:00
gwenn
7b0fb7d1b1
Merge pull request #1137 from gwenn/error_offset
...
Introduce SqlInputError with offset
2022-04-24 08:20:20 +02:00
gwenn
8370970b0b
Keep track of SQL input
2022-04-21 15:14:08 +02:00
gwenn
cfcbb56fce
Merge remote-tracking branch 'origin/master' into error_offset
...
# Conflicts:
# src/statement.rs
2022-04-20 07:27:05 +02:00
gwenn
26c444341c
Do not use Connection::handle()
...
https://docs.rs/rusqlite/latest/rusqlite/struct.Connection.html#method.handle
```
You should not need to use this function...
```
And use `decode_result`...
2022-04-18 08:59:49 -07:00
Thom Chiovoloni
899784379b
Expose sqlite3_changes
(or sqlite3_changes64
if available)
2022-04-03 08:13:27 -07:00
gwenn
5e2c103a0c
Add some missing wrappers ( #1139 )
...
* Add some missing wrappers:
sqlite3_value_subtype
sqlite3_result_subtype
sqlite3_changes64
sqlite3_db_readonly
sqlite3_txn_state
sqlite3_stmt_isexplain
sqlite3_vtab_config
sqlite3_index_info.idxFlags
sqlite3_index_info.colUsed
sqlite3_index_info.idxStr
sqlite3_vtab_collation
* Mark series VTab as innocuous and csv as direct only
2022-03-17 19:58:02 +01:00
gwenn
69a40526d5
Introduce SqlInputError with offset
2022-03-13 17:31:07 +01:00
gwenn
34b9519c3e
Merge pull request #1050 from gwenn/clippy_send
...
Fix clippy warning
2022-01-16 09:00:07 +01:00
Thom Chiovoloni
d67c0e09dd
Remove the SQLite version check
2022-01-09 01:57:13 -08:00
gwenn
43591154b2
clippy:ptr_as_ptr
2022-01-05 19:50:25 +01:00
Thom Chiovoloni
519684a744
cleanup unlock_notify code a bit
2022-01-04 21:15:18 -08:00
gwenn
28da7a2ad9
Fix clippy warning
...
warning: this implementation is unsound, as some fields in `Connection` are `!Send`
--> src/lib.rs:339:1
339 | unsafe impl Send for Connection {}
2021-12-04 10:07:56 +01:00
gwenn
ce90b519bb
Fix clippy warnings
2021-10-01 20:09:48 +02:00
Thom Chiovoloni
b612c6d727
Make load_extension
unsafe
2021-09-06 16:28:04 -07:00
gwenn
50097e1e44
Fix unused import
2021-07-27 18:17:07 +02:00
gwenn
7056e656ac
Remove check macro
...
Can be replaced by a simple function and ? operator.
2021-07-04 15:52:31 +02:00
gwenn
653e64ab98
Access to sqlite3_db_cacheflush via Connection
...
Fix #984
2021-07-03 16:41:55 +02:00
gwenn
9cdf80f3ca
Fix InnerConnection decode_result / changes
...
Fix #931
2021-06-13 10:39:36 +02:00
Nick Hynes
48e7561af9
Add support for authorizer hook ( #946 )
...
Co-authored-by: Thom Chiovoloni <chiovolonit@gmail.com>
2021-05-23 11:55:07 -07:00
Thom Chiovoloni
cdce75328e
Fix build on some older versions of Rust
2021-05-08 22:56:19 -07:00
Midas Lambrichts
55dc6e1979
Merge branch 'master' into preupdate_hook
2021-04-08 21:51:44 +02:00
Thom Chiovoloni
bd736b2634
Fix nightly non_fmt_panic warning
2021-03-02 18:19:11 -08:00
Midas Lambrichts
ceff6cb8b1
Extracted the preupdate_hook to a separate cargo feature.
...
Moved hooks and preupdate_hook into their own modules inside hooks.rs
Also created an initial way to access the functions that are available
during the callback.
2021-02-06 12:20:05 +01:00