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
gwenn
df02910660
Implement AsRef<Statement> for Row(s) ( #887 )
2021-05-26 14:51:28 +02:00
gwenn
1985e78fa6
Fix clippy warnings ( #959 )
...
Fix clippy warnings
2021-05-13 08:58:46 +02:00
Dirk Stolle
c33d6bfad3
fix several typos
2021-05-02 23:03:10 -07:00
gwenn
6c956bb270
Test that extra_check feature works with RETURNING statements ( #932 )
...
Test that extra_check feature works with RETURNING statements
2021-04-04 12:47:21 +02:00
gwenn
afcdc2b43a
Use most concise syntax for params
2021-01-19 21:16:08 +01:00
gwenn
e154ccb606
Rename get_raw to get_ref_unwrap and get_raw_checked to get_ref ( #838 )
...
* test `From<FromSqlError> for Error`
* Rename get_raw to get_ref_unwrap and get_raw_checked to get_ref
2020-12-22 21:34:30 +01:00
gwenn
32ee895b63
Remove some usages of params! / NO_PARAMS
2020-11-22 09:37:00 +01:00
gwenn
bbd1ff5fb0
Try to fix CI build
2020-11-05 22:24:55 +01:00
gwenn
549ceb59e2
Try to fix CI build
2020-11-05 22:21:02 +01:00
gwenn
da94f8eba6
Make tests return Result
2020-11-05 22:14:00 +01:00
Thom Chiovoloni
65c38bf813
Add #[inline]
and #[cold]
in far more places
2020-11-04 07:59:23 -08:00
Thom Chiovoloni
a312582d11
Ensure empty array Params impl can trigger Error::InvalidParameterCount when needed
2020-11-03 19:09:19 -08:00
Thom Chiovoloni
22121772a2
Deprecate NO_PARAMS in favor of passing an empty array
2020-11-03 19:09:19 -08:00
Thom Chiovoloni
2461ebf62f
Update documentation
2020-11-03 19:09:19 -08:00
Thom Chiovoloni
032aea73b8
Overhaul query API, removing the need for the _named
variants of all functions, and rusqlite::NO_PARAMS
2020-11-03 19:09:19 -08:00
gwenn
1103febb1e
Test Batch iterator
2020-10-31 11:11:12 +01:00
gwenn
f3c2b63836
Get rid of fallible iterator trait
2020-10-31 10:47:44 +01:00
gwenn
73323b6b92
Remove Iterator implementation for Batch
...
If Batch implements both `Iterator` and `FaillibleIterator`, `next`
method is ambiguous and must be qualified...
2020-10-29 20:06:47 +01:00
gwenn
b73ca079a8
Implement Iterator for Batch
2020-10-29 20:01:46 +01:00
gwenn
d1ec46182f
Fix Clippy warning
2020-10-28 21:26:36 +01:00
gwenn
5ce81024c8
Introduce Batch fallible iterator
2020-10-28 21:10:13 +01:00
gwenn
a4691db6d0
pragma_update fails with ExecuteReturnedResults
...
Ideally, while executing a batch, we should fail if it contains a SELECT
statement. But currently there is no way to make the distinction between
a SELECT and a PRAGMA which both updates and returns a row.
So we fail only when `extra_check` feature is activated.
2020-08-17 19:30:24 +02:00
Nikhil Benesch
b83d22e2b7
Upgrade to time v0.2 and put it behind a feature flag
...
This also removes the usage of time in the crate's top-level
documentation example, as was done for the README in #625 .
Fix #653 .
2020-07-24 11:28:19 -07:00
Thom Chiovoloni
f79a9ca3ef
Publically expose Map
2020-06-29 09:36:13 -07: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
76fc22c653
Fix missing docs
2020-05-21 00:48:06 -07:00
Thom Chiovoloni
9322b0e881
Update links & copyright statement
2020-04-15 21:37:39 -07:00
Thom Chiovoloni
ac30e169ae
Use SmallCString in most places
2020-04-14 10:26:41 -07:00
Thom Chiovoloni
552416039e
Optimize named params via caching and use of smallvec
2020-04-14 10:26:41 -07:00
Konrad Borowski
c8078dfd1f
Allow non-Unicode file names on Unix-like platforms
2020-04-09 10:35:38 +02:00
Thom Chiovoloni
ca13698273
Revert "Merge pull request #499 from xfix/unix-invalid-unicode"
...
This reverts commit 061748e1f5
, reversing
changes made to cf3cdecf12
.
2020-04-08 10:38:32 -07:00
Thom Chiovoloni
061748e1f5
Merge pull request #499 from xfix/unix-invalid-unicode
...
Allow non-Unicode file names on Unix-like platforms
2020-04-08 10:30:50 -07:00
Thom Chiovoloni
8f7fc7d976
Avoid using MaybeUninit for pointers
2020-04-07 10:04:18 -07:00
Thom Chiovoloni
d35dd0e99f
Allow optionally passing an Error parameter to rusqlite::Result
( #678 )
2020-04-06 14:43:06 -07:00