gwenn
0312937d6a
Use #[doc(cfg)]
...
Fix #835
2021-06-13 09:17:35 +02:00
gwenn
afcdc2b43a
Use most concise syntax for params
2021-01-19 21:16:08 +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
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
2a7b11320f
Fix clippy warnings
2020-08-17 20:07:56 +02:00
Thom Chiovoloni
2327d3b774
Fix format string error in rusqlite::trace::log
2020-04-14 12:23:15 -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
8302a50fb8
Fix clippy warnings
2019-11-03 11:19:07 +01:00
gwenn
e4fecf7fb8
Rustfmt
2019-08-09 20:03:46 +02:00
gwenn
d229f0f9e9
Remove #[macro_use] attribute when importing macros
2019-08-09 20:01:44 +02:00
gwenn
6d9ae896b5
Do not panic by default
...
Replace `Row::get` by `Row::get_checked`,
And rename original `Row::get` to `Row::get_unwrap`.
`Stmt::query_map`, `Stmt::query_map_named`, `Stmt::query_row`,
`Conn::query_row` and `Conn::query_row_named` callback parameter must return a `Result`.
2019-02-21 20:48:09 +01:00
gwenn
bd9b850c43
Callbacks must not be able to unwind into sqlite code
2018-12-16 09:40:14 +01:00
gwenn
f04047db01
Rust 2018
2018-10-30 20:15:08 +01:00
gwenn
c4ae541eac
Take IntoIterator rather than &[&ToSql]
( #312 )
2018-09-16 09:49:23 +02:00
gwenn
5e9c7bac4e
Rustfmt
2018-08-16 18:29:46 +02:00
gwenn
c925d1aa97
Rustfmt
2018-08-11 12:48:21 +02:00
Sean Griffin
2c58b3f804
Remove the dependency on libc
...
Recent versions of bindgen use `std::os::raw` over `libc`, but currently
`libsqlite3-sys` is overriding that. `std::os::raw` is a subset of
`libc` that exports only the relevant type definitions, but not any
functions which require additional linking. This enables
`libsqlite3-sys` to be more easily used on targets that may not have a
libc available (presumably sqlite itself would have been compiled with
musl in that case)
2017-02-16 11:17:24 -05:00
John Gallagher
c4417bee0e
Manual fixes for rustfmt overly long lines.
2016-05-19 20:09:40 -05:00
John Gallagher
4a6c7b5329
Reset in Rows's drop impl instead of waiting for the next query
2016-05-16 14:02:39 -05:00
gwenn
b20168fe9c
Use String::from_utf8_lossy for error/trace.
...
Try to use the original message even if there are invalid
characters.
2016-05-07 12:08:57 +02:00
John Gallagher
c0b8be99e8
Fix crash due to 0-sized function type change in nightly
2016-03-29 16:14:12 -04:00
John Gallagher
047861b928
Move Error
into its own module (internal organization only - public API remains).
2015-12-16 20:30:27 -05:00
John Gallagher
aac4d59fcc
Change Error
from a struct to an enum (BREAKING CHANGE).
...
This allows us to separate out the underlying SQLite error codes from
errors that occur on the Rust side.
2015-12-16 20:30:27 -05:00
John Gallagher
b883ab651d
Update unsafety of C function pointers for new bindgen
2015-12-13 08:40:51 -05:00
John Gallagher
eb60bb3111
Rename SqliteResult
-> Result
.
2015-12-12 14:06:03 -05:00
John Gallagher
f0b6bf9152
Rename SqliteError -> Error.
2015-12-12 13:53:58 -05:00
John Gallagher
4327a84edb
Rename SqliteConnection -> Connection.
...
Leave old name in as a (deprecated) typealias.
2015-12-12 13:53:34 -05:00
John Gallagher
a1f1480b18
Run rustfmt on all crate files
2015-12-10 16:48:09 -05:00
John Gallagher
e6fef5107d
Change profile() to take a Rust fn instead of an extern "C" fn.
2015-12-01 10:34:18 -05:00
John Gallagher
ace5b1ebdc
Change trace() to take a Rust fn instead of an extern "C" fn.
2015-11-30 21:08:39 -05:00
John Gallagher
dbfa6ca31f
Change config_log to take a Rust fn instead of an extern "C" fn.
...
Moves the unit test for config_log out of #[ignore] and into its own
test file since it affects the entire process.
2015-11-30 21:08:39 -05:00
Gwenael Treguier
a2327fb048
Revert "Remove usage of unstable library feature 'duration'"
...
This reverts commit 9c415f9c9e
.
2015-11-11 15:00:39 +01:00
Gwenael Treguier
50bfba1e1d
Ignore test_log.
2015-11-11 14:29:40 +01:00
Gwenael Treguier
59a4c5593a
Improve documentation.
2015-08-08 09:57:07 +02:00
Gwenael Treguier
9c415f9c9e
Remove usage of unstable library feature 'duration'
2015-08-02 12:16:01 +02:00
gwenn
ef254fdca0
Rename feature to 'trace'
2015-08-01 18:58:04 +02:00