gwenn
c577a9d801
Lifetime elision
2020-06-01 18:44:02 +02:00
gwenn
52a80f95f7
Merge pull request #754 from gwenn/phantom_data
...
Fix some PhantomData declarations
2020-06-01 11:48:02 +02:00
gwenn
4e6dc91fc0
Merge pull request #753 from gwenn/vtab_cursor_lifetime
...
VTabCursor lifetime should be bound to VTab lifetime
2020-06-01 11:47:23 +02:00
gwenn
265020e589
Fix some PhantomData declarations
...
Specify the expected type instead of () even if only the lifetime
matters
2020-06-01 10:11:34 +02: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
48a15857fb
Merge pull request #752 from Dushistov/omit-decltype
...
adding ability to work with sqlite compiled with -DSQLITE_OMIT_DECLTYPE
2020-06-01 07:28:17 +02:00
Evgeniy A. Dushistov
d16748ac9f
adding ability to work with sqlite compiled with -DSQLITE_OMIT_DECLTYPE
...
fix #751
2020-06-01 06:31:27 +03:00
Evgeniy A. Dushistov
8cdfaf36ae
little speedup for bundled sqlite3.c
2020-05-29 17:02:37 -07:00
gwenn
c1142c309e
Upgrade to bindgen 0.54
2020-05-29 17:02:16 -07:00
gwenn
f7b60d866d
Merge pull request #743 from gwenn/rows_doc
...
Document Rows::map and FallibleStreamingIterator impl
2020-05-25 19:53:51 +02:00
Thom Chiovoloni
9b3805a26b
Add doctest variant of the most full --feature set in CI
2020-05-24 12:21:33 -07:00
gwenn
8cb5b2e585
Document Rows::map and FallibleStreamingIterator impl
...
See
https://www.reddit.com/r/rust/comments/gov817/rusqlite_only_getting_ok_entries_from_query_map/
```
let mut stmt = self
.db
.prepare("SELECT tag FROM tags WHERE tags.entry_id = ?1")?;
let tags = stmt.query(params![id])?;
tags
.map(|res| res.get(0))
.collect()
```
2020-05-24 20:53:52 +02:00
Voodlaz
dbd1e0bb85
Update README.md
2020-05-21 09:08:39 -07:00
Voodlaz
d5ed10f306
Update README.md
2020-05-21 09:08:39 -07:00
gwenn
e664f82630
Add still missing docs in session module
2020-05-21 00:48:06 -07:00
gwenn
5ebba26a7e
Add missing docs in session module
2020-05-21 00:48:06 -07:00
gwenn
76fc22c653
Fix missing docs
2020-05-21 00:48:06 -07:00
Martin Habovstiak
8a08dff115
Clippy reports redundant closures even in cases in which removing the
...
closure is impossible. See
https://github.com/rust-lang/rust-clippy/issues/5594
Allow this lint until the issue is resolved in clippy or the compiler.
2020-05-21 00:47:52 -07:00
Martin Habovstiak
c5b2efc099
impl TryFrom<&Row<'_>> for (...)
...
This change implements `TryFrom<&Row>` for tuples up to 16 fields. This
is a convenience function that can be used to map rows more easily.
The change includes tests for 1-tuple, 2-tuple and 16-tuple.
2020-05-21 00:47:52 -07:00
Thom Chiovoloni
aabcce9aa6
Add link to gitter channel. Fixes #736
2020-05-19 18:52:54 -07:00
gwenn
5565ae5629
Merge pull request #735 from gwenn/extended_result_codes
...
Activate extended result codes asap
2020-05-17 09:53:25 +02:00
gwenn
0dd01e999d
Merge pull request #733 from gwenn/visibility
...
Replace pub(crate) by pub(super) visibilty
2020-05-17 09:52:56 +02:00
gwenn
4655515e72
Merge pull request #737 from gwenn/license
...
Include LICENSE into the libsqlite3-sys crate
2020-05-16 13:30:10 +02:00
gwenn
36745757bc
Include LICENSE into the libsqlite3-sys crate
...
Fix #736
2020-05-16 13:22:09 +02:00
gwenn
0060ff8a44
Activate extended result codes asap
2020-05-16 11:01:30 +02:00
gwenn
ceb9f11de8
Replace pub(crate) by pub(super) visibilty
2020-05-16 10:18:25 +02:00
Thom Chiovoloni
65ef2224b6
Cut release 0.23.1
2020-04-23 15:05:54 -07:00
Thom Chiovoloni
12cb228c9c
Fix SqliteMallocString::from_str on arm32
2020-04-23 13:58:50 -07:00
Thom Chiovoloni
54043c803c
Prep release 0.23.0
2020-04-23 09:48:08 -07:00
Thom Chiovoloni
d88fe1c1b1
Remove parameter count caching -- should be cheap (if statically linked at least...)
2020-04-16 12:05:56 -07:00
Thom Chiovoloni
a776f460e8
Cache param count and make statement cache more effective
2020-04-16 12:05:56 -07:00
Thom Chiovoloni
6485b324d7
Name fields of RawStatement
2020-04-16 12:05:56 -07:00
Thom Chiovoloni
1207a7cc06
Make clippy behave slightly more reasonably
2020-04-16 08:21:43 -07:00
Thom Chiovoloni
418ef10af2
Add a wrapper for strings allocated on sqlite heap
2020-04-16 08:21:43 -07:00
Thom Chiovoloni
ca3583e1df
See if we can turn on the stack-use-after-return asan check
2020-04-16 03:09:51 -07:00
Thom Chiovoloni
185899eab1
Run asan in CI. Fixes #713
2020-04-16 03:09:51 -07:00
Thom Chiovoloni
4abc8a4fdd
Try to turn on x86_64-pc-windows-gnu
2020-04-16 03:09:51 -07:00
Thom Chiovoloni
b079463bd2
Ignore checked-in generated or external code, and add badges
2020-04-16 01:25:27 -07:00
Thom Chiovoloni
424e7bfa67
Apparently we don't actually need a token for public repos?
2020-04-16 01:25:27 -07:00
Thom Chiovoloni
ca6ab8e560
Try code coverage
2020-04-16 01:25:27 -07:00
Thom Chiovoloni
4f19827ee9
Update badges
2020-04-15 21:37:39 -07:00
Thom Chiovoloni
9322b0e881
Update links & copyright statement
2020-04-15 21:37:39 -07:00
Thom Chiovoloni
45fd77ee43
UnlockNotification should hold mutex when calling condvar
2020-04-15 13:52:19 -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
Thom Chiovoloni
e85963852d
Fix shellcheck compaints about upgrade.sh
2020-04-15 09:49:23 -07:00
Thom Chiovoloni
2327d3b774
Fix format string error in rusqlite::trace::log
2020-04-14 12:23:15 -07:00
Thom Chiovoloni
abbab7216a
Better docs and cleaner SmallCString
2020-04-14 10:26:41 -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