Commit Graph

509 Commits

Author SHA1 Message Date
gwenn
503f02ee01 Cosmetic changes in tests 2022-11-11 16:32:42 +01:00
gwenn
784ef95bb6 Intoduce one_column for tests 2022-11-11 16:20:39 +01:00
gwenn
6d509afe49 Clippy 2022-10-28 19:02:49 +02:00
gwenn
ff1b3d5ed4
Merge pull request #1223 from gwenn/const
Reuse constants already defined in SQLite <= 3.14.0
2022-10-05 19:30:17 +02:00
gwenn
7dab08c4b2 Fix clippy warnings 2022-10-02 11:34:58 +02:00
gwenn
dae4390c5e Reuse constants already defined in SQLite <= 3.14.0 2022-09-02 20:04:18 +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
d5110ced91 Fix clippy warnings 2022-07-31 07:00:37 +02:00
gwenn
618e9a1274 Clean code
Typos, deprecated code usages, ...
2022-05-29 13:33:51 +02:00
gwenn
c15fa489ad Bundled SQLCipher is now based on SQLite > 3.35 2022-04-21 13:34:20 +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
Nikolai Vazquez
4d06d2222f Add Connection::release_memory method
This is behind a new `release_memory` feature flag. It simply calls
`sqlite3_db_release_memory` on the raw handle.
2022-04-17 08:40:36 -07:00
gwenn
ad911efd15 Replace .err().unwrap() by .unwrap_err() 2022-04-07 09:17:42 +02:00
gwenn
214a6244f9 Rustfmt 2022-04-07 09:17:07 +02:00
gwenn
fedf6b41ae Use sqlite_error_code where possible 2022-04-07 09:15:55 +02:00
Thom Chiovoloni
624c3a2d05 Small doc grammar fix 2022-04-04 00:20:33 -07:00
Thom Chiovoloni
46def6d67e Improve the docs for opening the connection a bit 2022-04-03 22:08:50 -07:00
gwenn
af8cd1caec
Merge pull request #1152 from thomcc/expose-changes
Expose `sqlite3_changes` (or `sqlite3_changes64` if available)
2022-04-04 06:36:10 +02:00
Thom Chiovoloni
9699b4a210 Fix non-bundled tests against macOS system SQLite 2022-04-03 11:12:38 -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
Thom Chiovoloni
74e4fa008e Make the example code in the crate docs be the same as the README 2022-03-10 13:07:06 -08:00
Thom Chiovoloni
2ec0b2e8fe Implement Params for tuples of ToSql up to size 16, and touch up docs 2022-03-10 13:07:06 -08:00
Thom Chiovoloni
d67c0e09dd Remove the SQLite version check 2022-01-09 01:57:13 -08:00
gwenn
cc4f059d9b Merge remote-tracking branch 'origin/master' into ptr_as_ptr 2022-01-06 18:20:01 +01:00
gwenn
01c4be82c8 clippy::doc_markdown 2022-01-06 04:54:10 -08:00
gwenn
43591154b2 clippy:ptr_as_ptr 2022-01-05 19:50:25 +01:00
Thom Chiovoloni
230c76fe66 Fix a minor clippy complaint from nightly clippy 2022-01-04 21:15:18 -08:00
Thom Chiovoloni
519684a744 cleanup unlock_notify code a bit 2022-01-04 21:15:18 -08:00
gwenn
30f8c8c502 Fix callbacks lifetime 2021-12-01 04:28:09 -08:00
gwenn
19d0887179 Add new SQLITE_OPEN_EXRESCODE flag 2021-11-28 09:08:52 +00:00
Daan Schutte
ca41531f6f Add missing import 2021-11-22 09:10:37 -08:00
Daan Schutte
40fbc5ca10 Include varying positional param types in docs 2021-11-22 09:10:37 -08: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
187d1fec07 Merge remote-tracking branch 'upstream/master' into remove_check_macro
# Conflicts:
#	src/blob/pos_io.rs
2021-07-27 18:36:44 +02:00
gwenn
7ddf1316a2 Replace some usages of checked_memory_handle
In tests which return Result, we don't need to unwrap.
2021-07-04 16:04:13 +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
1970b60109 Add minimal test for cache_flush 2021-07-03 17:03:58 +02:00
gwenn
653e64ab98 Access to sqlite3_db_cacheflush via Connection
Fix #984
2021-07-03 16:41:55 +02:00
gwenn
dcaa67a617
Merge pull request #973 from gwenn/doc_cfg
Use #[doc(cfg)]
2021-06-30 18:07:54 +02:00
gwenn
5730b2f952 Fix clippy warnings 2021-06-25 18:57:25 -07:00
gwenn
2ddbebad97 Merge remote-tracking branch 'origin/master' into doc_cfg 2021-06-14 20:19:23 +02:00
gwenn
781d5b9fdd
Merge pull request #975 from gwenn/authorizer
Fix AuthContext / Authorization visibility
2021-06-14 19:54:22 +02:00
gwenn
a2756ffbb0 Fix AuthContext / Authorization visibility
Fix #972
Breaking change: Action is not visible from root anymore
2021-06-13 10:46:00 +02:00
gwenn
9cdf80f3ca Fix InnerConnection decode_result / changes
Fix #931
2021-06-13 10:39:36 +02:00
gwenn
0312937d6a Use #[doc(cfg)]
Fix #835
2021-06-13 09:17:35 +02:00
dubiousjim
8770e7d443
Add bundle-sqlcipher and bundle-ssl (#860)
Co-authored-by: Thom Chiovoloni <chiovolonit@gmail.com>
2021-06-02 12:07:56 -07:00
Thom Chiovoloni
a2d48a8c15
Add a function to return the path of a Connection (#963) 2021-05-29 22:48:48 -07:00