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
Thom Chiovoloni
bd736b2634
Fix nightly non_fmt_panic warning
2021-03-02 18:19:11 -08:00
Thom Chiovoloni
65c38bf813
Add #[inline]
and #[cold]
in far more places
2020-11-04 07:59:23 -08:00
gwenn
f5c83af863
Expose query progress information
2020-10-25 11:58:47 +01:00
gwenn
6ae9802fa3
Feature ptr_offset_from #41079 available in 1.47
2020-10-08 21:12:46 +02:00
gwenn
dd886578d2
Implement our own sqlite3_exec
...
Should fix issue related to unlock notify: #767
Caveat: many CString allocated.
2020-06-26 19:35:14 +02:00
gwenn
0060ff8a44
Activate extended result codes asap
2020-05-16 11:01:30 +02:00
Thom Chiovoloni
ac30e169ae
Use SmallCString in most places
2020-04-14 10:26:41 -07:00
Thom Chiovoloni
8f7fc7d976
Avoid using MaybeUninit for pointers
2020-04-07 10:04:18 -07:00
Thom Chiovoloni
53c99f940e
Fix up conventions around unsafe in internal functions
2020-04-07 10:04:18 -07:00
Thom Chiovoloni
c0df911946
Avoid rust-analyzer bug in InnerConnection::new ( #686 )
...
This is a workaround for a false error rust-analyzer gives in
InnerConnection::new. I'm guessing it's because it does some weird
feature stuff. It doesn't change any semantics, but makes working in
`rusqlite` much nicer when using rust-analyzer.
2020-04-07 08:58:41 -07:00
gwenn
5356a609de
Introduce alloc
to generate C string allocated by sqlite3
...
Safe to send to SQLite for deallocation.
2020-02-29 13:09:42 +01:00
Joshua C. Randall
09ad553081
don't perform threading mode checks on wasm32
2020-02-24 22:48:54 +00:00
gwenn
4d58a43b38
Fix compilation errors
2020-02-09 12:08:25 +01:00
gwenn
9e17a0b28e
Merge remote-tracking branch 'upstream/master' into pr/open-with-vfs
...
# Conflicts:
# src/inner_connection.rs
2020-02-09 11:58:49 +01:00
Thom Chiovoloni
c70d148542
Remove most of the code using feature=bundled
as a version check
2020-01-14 08:11:36 -08:00
gwenn
8302a50fb8
Fix clippy warnings
2019-11-03 11:19:07 +01:00
gwenn
ca5eccfe95
Check that even when sqlite_stmt
is null, there is no panic.
2019-10-30 20:09:27 +01:00
gwenn
8eb844b0c9
Paste relevant section from SQLite documantation
2019-10-29 20:26:35 +01:00
gwenn
edfd7658c3
Segmentation fault on prepare_cached
with an empty query
...
With an empty query is prepared, sqlite3 returns no error but a null pointer.
And then `sqlite3_sql` returns null.
Which make `CStr::from_ptr` crash.
2019-10-29 19:24:18 +01:00
gwenn
ec52d44939
Merge pull request #578 from gwenn/cant-open
...
Cant open
2019-10-19 11:20:56 +02:00
gwenn
15f356e5a7
Merge remote-tracking branch 'jgallagher/master' into cant-open
2019-10-19 10:40:53 +02:00
gwenn
22bdd80b92
Ignore mutex_atomic
clippy lint
...
> This lint cannot detect if the mutex is actually used for waiting
before a critical section.
2019-10-19 10:10:17 +02:00