gwenn
406ac6a7fc
clippy::must_use_candidate
2022-01-06 04:56:24 -08:00
gwenn
48975e015f
clippy::let_underscore_drop
2022-01-06 04:54:39 -08:00
gwenn
01c4be82c8
clippy::doc_markdown
2022-01-06 04:54:10 -08: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
gwenn
0ce15c546a
Fix clippy warnings
2021-12-18 08:42:04 +01: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
ce90b519bb
Fix clippy warnings
2021-10-01 20:09:48 +02:00
gwenn
6f4283be94
Iterate on both index constraint and usage
2021-07-29 19:48:34 +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
0312937d6a
Use #[doc(cfg)]
...
Fix #835
2021-06-13 09:17:35 +02:00
Dirk Stolle
c33d6bfad3
fix several typos
2021-05-02 23:03:10 -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
gwenn
ed3bfbdf9d
Silent some clippy warnings ( #924 )
...
* allow(clippy::upper_case_acronyms) for rust enum entries that match
SQLite constants.
* allow(clippy::needless_return) for collation_needed_callback until we
find a way to propagate the error.
2021-03-25 21:06:46 +01:00
Joshua C. Randall
1b8af31f32
silence clippy::needless-update warning whe the ffi bindings specify exactly the set of sqlite3_module fields we explicitly list
2021-03-08 20:19:25 +00:00
gwenn
2319165b59
Fix clippy warnings
2021-01-02 10:49:29 +01:00
gwenn
6fae5d6641
Add/fix rustdoc links
2020-11-22 09:34:03 +01:00
gwenn
3388fd1683
Remove #[non_exhaustive] attribute on IndexConstraintOp
2020-11-07 12:02:33 +01:00
Thom Chiovoloni
65c38bf813
Add #[inline]
and #[cold]
in far more places
2020-11-04 07:59:23 -08:00
gwenn
2af75d1f13
VTabCursor lifetime should be bound to VTab lifetime
...
```c
struct sqlite3_vtab_cursor {
sqlite3_vtab *pVtab; /* Virtual table of this cursor */
```
It seems that we need to introduce a lifetime on `VTab` trait
to express such constraint:
https://users.rust-lang.org/t/associated-type-with-lifetime-bound/7256
But there may be another/new way to do it.
2020-06-01 09:48:49 +02:00
gwenn
76fc22c653
Fix missing docs
2020-05-21 00:48:06 -07:00
gwenn
ceb9f11de8
Replace pub(crate) by pub(super) visibilty
2020-05-16 10:18:25 +02:00
Thom Chiovoloni
418ef10af2
Add a wrapper for strings allocated on sqlite heap
2020-04-16 08:21:43 -07:00
Thom Chiovoloni
9322b0e881
Update links & copyright statement
2020-04-15 21:37:39 -07:00
Thom Chiovoloni
c9ef5bd63c
Make VTab / VTabCursor unsafe trait
as implmenting them on the wrong type is unsound
2020-04-15 10:33:04 -07:00
Thom Chiovoloni
3c6b57fe1b
Fix vtab::Module lifetime
2020-04-15 10:33:04 -07:00
gwenn
611c8e8b02
Rustfmt
2020-04-11 22:18:22 -07:00
Thom Chiovoloni
f5c20abaa1
Remove unused vtab_v3 feature while I'm here
2020-04-07 14:28:03 -07:00
Thom Chiovoloni
6f6f7ffd9f
Add #[non_exhaustive]
to enums that might get new variants. ( #673 )
...
This just using them in patterns without a catchall. I left things alone
that seem very unlikely to change (`Value`, `ValueRef`, `DatabaseName`,
etc...). This might help reduce the number of breaking changes we need
(rusqlite is still pre-1.0 so it doesn't really matter that much, but
breaking changes complicate the story around when we can cut releases).
2020-04-06 12:01:39 -07:00
Thom Chiovoloni
6617db59fb
Document which features are required, and add vtab usage examples ( #669 )
2020-04-05 22:15:27 -07:00
gwenn
5356a609de
Introduce alloc
to generate C string allocated by sqlite3
...
Safe to send to SQLite for deallocation.
2020-02-29 13:09:42 +01:00
gwenn
17759a912e
Ignore PATH change
...
Cargo itself changes the PATH.
So `libsqlite3-sys` is always rebuilt on Windows platform.
To avoid this, we ignore PATH change.
If the PATH has been modified in such a way that a different SQLite library is found,
you will have to also modify SQLITE3_LIB_DIR to make cargo rebuild `libsqlite3-sys`
Fix #435 .
2020-02-08 10:25:52 +01:00
gwenn
8cc4440f45
Add missing IndexConstraintOp entries
...
Remove conditional inclusions.
2020-01-26 18:14:52 +01:00
gwenn
5d06bc25a6
Add missing IndexConstraintOp entries
...
Breaking changes
2020-01-26 17:51:51 +01:00
gwenn
adb904650d
Fix warnings related to deprecated Error::description
2020-01-26 16:57:58 +01:00
Thom Chiovoloni
c70d148542
Remove most of the code using feature=bundled
as a version check
2020-01-14 08:11:36 -08:00
gwenn
8302a50fb8
Fix clippy warnings
2019-11-03 11:19:07 +01:00
gwenn
d229f0f9e9
Remove #[macro_use] attribute when importing macros
2019-08-09 20:01:44 +02:00
gwenn
30b41bed20
Make Module
impl Send
...
Also introduce a dedicated feature for series virtual table.
2019-07-11 19:21:54 +02:00
gwenn
208f3c084b
Clippy: fix warnings
2019-07-10 21:10:12 +02:00
Thom Chiovoloni
4356f5a176
Include the name of the column in InvalidColumnType errors
2019-06-25 12:20:11 -07:00
gwenn
93b5c10816
Fix warning: the item X
is imported redundantly
2019-06-02 08:36:16 +02:00
Richard Dodd
6c837a3f51
Fix other failing case
2019-04-26 15:30:49 +01:00
gwenn
e9896a7734
Lifetime elision in impl
2019-02-03 11:02:38 +01:00
gwenn
75c0fe349a
Add xShadowName only if bundled
or vtab_v3
activated
2018-12-15 11:53:41 +01:00
gwenn
287e2f5dbc
Fix vtab modules
...
`xShadowName` added
2018-12-15 10:51:02 +01:00
gwenn
d874180333
Rust 2018 idioms
2018-12-07 21:57:04 +01:00
gwenn
bcaa929748
Merge remote-tracking branch 'jgallagher/master' into 2018
...
# Conflicts:
# src/lib.rs
# src/statement.rs
2018-11-05 20:04:04 +01:00
gwenn
ccf52b2daa
Replace try!
by ?
2018-11-05 19:09:41 +01:00