Commit Graph

1026 Commits

Author SHA1 Message Date
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
934e0c709e Fix callbacks lifetime 2021-12-01 04:28:09 -08:00
gwenn
612158507e Fix callbacks lifetime 2021-12-01 04:28:09 -08:00
gwenn
30f8c8c502 Fix callbacks lifetime 2021-12-01 04:28:09 -08:00
gwenn
9acc6f85f0 Rustfmt 2021-11-28 09:41:54 +00:00
gwenn
e65fd1e8e4 Ignore dcl_type case 2021-11-28 09:38:24 +00:00
gwenn
19d0887179 Add new SQLITE_OPEN_EXRESCODE flag 2021-11-28 09:08:52 +00:00
Lukas Himbert
289b4e45b2 implement FromSql for chrono::DateTime<FixedOffset> 2021-11-22 21:09:25 -08:00
Lukas Himbert
53e74a3f09 preserve offset when writing chrono::DateTime<FixedOffset> 2021-11-22 21:09:25 -08: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
5d42ba7c29
Merge pull request #912 from Genomicsplc/fix-needless-update-warning
silence clippy::needless-update warning in vtab module creation functions
2021-10-23 16:57:45 +02:00
gwenn
b1257cdb79 Fix error: docs for unsafe trait missing # Safety section 2021-10-21 19:50:03 +02:00
gwenn
99aded446d Fix error: the item TryInto is imported redundantly 2021-10-21 19:48:38 +02:00
gwenn
2f508e7a38 Fix error: the item TryFrom is imported redundantly 2021-10-21 19:20:44 +02:00
gwenn
ce90b519bb Fix clippy warnings 2021-10-01 20:09:48 +02:00
Toby Murray
8a88ba647c 'restricts' -> 'restrictions' 2021-09-23 06:49:58 -07:00
Thom Chiovoloni
b612c6d727 Make load_extension unsafe 2021-09-06 16:28:04 -07:00
Paweł Kubrak
ca37ea2569 Add as_type_or_null to ValueRef 2021-08-17 19:21:59 -07:00
Thom Chiovoloni
e92e8a0924 Use a generic ToSql param in pragma functions 2021-08-01 11:12:08 -07:00
gwenn
9eb97aa9dd
Merge pull request #970 from gwenn/time-fmt
Fix FromSql impl for OffsetDateTime
2021-07-31 11:41:55 +02:00
gwenn
0241350af3 Check Rfc3339 before stripping Z
So that "2013-10-07T08:23:19Z" and "2013-10-07T08:23:19.120Z" are
correctly parsed.
2021-07-31 11:05:42 +02:00
gwenn
7e74952e2e
Merge pull request #1006 from gwenn/constraints_and_usages
Iterate on both index constraint and usage
2021-07-31 10:01:37 +02:00
gwenn
b3f8c283f1 Merge remote-tracking branch 'upstream/master' into time-fmt 2021-07-30 21:24:51 +02:00
gwenn
6f4283be94 Iterate on both index constraint and usage 2021-07-29 19:48:34 +02:00
Thom Chiovoloni
db914abd00 Make the empty placeholder params be Send + Sync 2021-07-28 13:45:28 -04: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
01b52990da
Merge pull request #988 from gwenn/error_handle
Retrieve error message from database connection handle
2021-07-27 18:31:42 +02:00
gwenn
569893531e
Merge pull request #987 from gwenn/checked_memory_handle
[Cosmetic] Replace some usages of checked_memory_handle
2021-07-27 18:20:02 +02:00
gwenn
50097e1e44 Fix unused import 2021-07-27 18:17:07 +02:00
Jiahao XU
0241cb0388 Fix the typename used in doc for VTab and VTabCursor
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2021-07-25 22:30:44 -04:00
gwenn
2dea70304d Retrieve error message from database connection handle 2021-07-04 16:53:40 +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
Thom Chiovoloni
15d3ae30e3 Add a helper function for getting the byte data from a value ref regardless of if its Text or Blob 2021-07-02 17:12:05 -07:00
gwenn
dcaa67a617
Merge pull request #973 from gwenn/doc_cfg
Use #[doc(cfg)]
2021-06-30 18:07:54 +02:00
gwenn
0c348c9eb0 Fix clippy warning 2021-06-28 19:05:37 +02:00
gwenn
5730b2f952 Fix clippy warnings 2021-06-25 18:57:25 -07:00
gwenn
b14e326181 Use format_description macro 2021-06-14 21:34:05 +02:00
gwenn
fc9f03c1ca Make tests more succint by using Rfc3339 string 2021-06-14 20:49:59 +02: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
83e8c96ae9 Fix InnerConnection::authorizer visibility 2021-06-14 19:26:09 +02:00
gwenn
73fd16958e Fix missing docs 2021-06-13 10:57:01 +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
gwenn
bcf28fec35 Fix FromSql impl for OffsetDateTime
Fix test doc
2021-06-12 18:54:29 +02:00