Kornel
b6bf62db14
Use track_caller for panicking methods
2023-04-15 21:35:03 +01:00
gwenn
aad182aff4
Merge pull request #1252 from gwenn/serde_json
...
Fix FromSql/ToSql for serde_json::Value
2022-12-11 09:50:21 +01:00
gwenn
2e07650a02
Use ?NNN format instead of ?
...
https://sqlite.org/lang_expr.html#parameters
> But because it is easy to miscount the question marks, the use of this parameter format is discouraged. Programmers are encouraged to use one of the symbolic formats below or the ?NNN format above instead.
2022-11-27 09:38:06 +01:00
gwenn
1038577691
Fix clippy warnings
...
Related to chrono 0.4.23.
Only some tests are impacted.
2022-11-19 13:29:43 +01:00
gwenn
6ca54320fc
Fix FromSql/ToSql for serde_json::Value
...
Fix #882 for valid JSON values
2022-11-11 18:37:22 +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
7dab08c4b2
Fix clippy warnings
2022-10-02 11:34:58 +02: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
Max Unsted
95941f6378
derive Eq for Type
2022-04-17 13:28:48 -07:00
gwenn
ad911efd15
Replace .err().unwrap() by .unwrap_err()
2022-04-07 09:17:42 +02: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
cc4f059d9b
Merge remote-tracking branch 'origin/master' into ptr_as_ptr
2022-01-06 18:20:01 +01:00
gwenn
e1fd731cb0
clippy::unseparated_literal_suffix
2022-01-06 05:07:27 -08:00
gwenn
406ac6a7fc
clippy::must_use_candidate
2022-01-06 04:56:24 -08:00
gwenn
b5aa6f7984
clippy::redundant_closure_for_method_calls
2022-01-06 04:54:51 -08:00
gwenn
43591154b2
clippy:ptr_as_ptr
2022-01-05 19:50:25 +01:00
trevyn
c759bc7527
Consolidate to FromSqlError::InvalidBlobSize
(breaking)
2022-01-02 18:24:56 -08:00
trevyn
7f09d295ba
Add ToSql/FromSql for [u8; N]
2022-01-02 18:24:56 -08: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
Paweł Kubrak
ca37ea2569
Add as_type_or_null to ValueRef
2021-08-17 19:21:59 -07: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
b3f8c283f1
Merge remote-tracking branch 'upstream/master' into time-fmt
2021-07-30 21:24:51 +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
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
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
gwenn
125f5dfbde
Fix FromSql impl for OffsetDateTime
...
Use time 0.3.0-alpha-1
2021-06-12 18:29:01 +02:00
gwenn
5baaa9a224
Fix FromSql impl for OffsetDateTime
...
Reveal bugs
2021-06-12 12:04:10 +02:00
gwenn
78e4036f90
Fix FromSql impl for OffsetDateTime
...
See 'Missing datetime format support' #968
2021-06-11 21:42:02 +02:00
Thom Chiovoloni
cdce75328e
Fix build on some older versions of Rust
2021-05-08 22:56:19 -07:00
gwenn
c4b398f468
Doctest column name reference ( #918 )
...
* Doctest column name reference
* Document rusqlite assumption on column name reference
And move doctest as a test.
* Document when columns metadata should be extracted.
* Rustfmt doc (wrap_comments)
2021-04-03 11:03:50 +02:00
Nick Hynes
ecbc0aa767
Leniently parse rfc3339 timezones ( #928 )
2021-04-03 10:56:11 +02:00
gwenn
91d6ce7a52
Fix unstable tests when machine is slow
2021-01-30 12:55:00 +01:00
gwenn
4f175d5748
Fix DateTime format
2021-01-29 22:03:50 +01:00
gwenn
afcdc2b43a
Use most concise syntax for params
2021-01-19 21:16:08 +01:00
gwenn
3aeb5d7e08
Remove obsolete doc section
...
`FromSql` / `ToSql` are now implemented for i64 and usize
2020-11-22 09:37:52 +01:00
gwenn
6fae5d6641
Add/fix rustdoc links
2020-11-22 09:34:03 +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
22121772a2
Deprecate NO_PARAMS in favor of passing an empty array
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
b448d95510
Merge remote-tracking branch 'upstream/master' into progress_handler
2020-10-28 21:21:19 +01:00
gwenn
76ad2bf19c
Rustfmt
2020-10-28 21:12:29 +01:00
Tim Hutt
b0ade73f43
Add ToSql implementations for u64 and usize
2020-10-26 23:28:25 -07:00
Tim Hutt
8841187717
Silence clippy
2020-10-24 09:52:05 -07:00