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
Tim Hutt
f264873999
Cargo format
2020-10-24 09:52:05 -07:00
Tim Hutt
ebcec59969
Implement From/ToSql for more types
...
This implements `FromSql` for `u64`, `usize` and `f32`, and `ToSql` for `f32`.
I also updated the documentation to describe how it currently works, and changed the implementation to use `try_from` for integral casts rather rather than custom code.
Test added.
2020-10-24 09:52:05 -07:00
gwenn
799b5d3f7b
Rustfmt
2020-10-04 07:39:35 +02:00
gwenn
d2dcc2d987
Fix clippy warning
2020-10-04 07:38:52 +02:00
gwenn
2a7b11320f
Fix clippy warnings
2020-08-17 20:07:56 +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
gwenn
4114c94585
Clippy
2020-06-26 19:22:20 +02:00
gwenn
76fc22c653
Fix missing docs
2020-05-21 00:48:06 -07:00
Thom Chiovoloni
38aea89809
Remove implementations of std::error::Error::description
2020-04-12 12:06:53 -07:00
Thom Chiovoloni
5a8108bd86
Implement source
and not cause
for FromSqlError
2020-04-12 12:06:53 -07:00
gwenn
4dbfdc85fe
Fix ValueRef::from_value
...
Handle text with internal nuls (#657 )
2020-04-11 22:18:22 -07:00
Thom Chiovoloni
76336369ed
Fix regression with <Cow<'_, _> as ToSql> ( #681 )
2020-04-06 17:00:15 -07:00