gwenn
08f96a678e
Rustfmt
2017-04-07 19:43:24 +02:00
gwenn
7f0082e44e
Merge remote-tracking branch 'jgallagher/master' into vtab
2017-03-08 20:35:07 +01: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
4216671fe6
Update for new bindgen output.
2017-02-08 20:40:30 -05:00
gwenn
80f822db28
rustfmt v0.7.1
2017-02-08 21:11:15 +01:00
John Gallagher
1974ee573c
Add range checks for i32's FromSql impl.
2017-01-22 19:26:19 -05:00
gwenn
46df930881
Merge remote-tracking branch 'jgallagher/master' into vtab
2016-12-31 09:15:26 +01:00
John Gallagher
4c8b0ab6dd
Merge pull request #181 from gwenn/clippy
...
Fix clippy warnings
2016-12-31 01:23:40 -05:00
John Gallagher
4181441d63
Merge branch 'master' into gwenn-invalid-column-type
2016-12-31 00:35:47 -05:00
gwenn
b10c52f32f
Fix clippy warnings
2016-08-08 15:23:55 +02:00
gwenn
3f55a4583c
Merge remote-tracking branch 'jgallagher/master' into vtab
2016-07-02 11:51:42 +02:00
gwenn
038ef2de42
Revert all InvalidColumnType stuff
2016-07-02 11:50:39 +02:00
gwenn
e2cf171192
Introduce FromSqlError
as specified by John Gallagher
2016-06-02 21:03:25 +02:00
John Gallagher
58b7aea4f7
Merge branch 'release-0.7' into merge-0.7.3
2016-06-01 21:31:26 -04:00
John Gallagher
ad0b823560
Remove sanity check in insert()
that could return StatementFailedToInsertRow
.
...
This was intended to detect an `UPDATE` query passed to `insert`, but
incorrectly failed if inserts to different tables caused the same row ID
to be returned from both. `UPDATE`s are no longer detectable.
2016-06-01 20:52:22 -04:00
gwenn
91dc30b04d
Simplify InvalidType
2016-05-30 21:20:07 +02:00
gwenn
fb19e718cf
Introduce an intermediary InvalidType error.
...
InvalidType is used where the column/parameter index is not known.
2016-05-30 20:35:56 +02:00
John Gallagher
7c0eba0475
Add since
and note
for all deprecation tags.
2016-05-29 20:36:20 -04:00
gwenn
f817ec86bc
Use new Rust 1.9 attribute: #[deprecated].
2016-05-26 21:16:09 +02:00
gwenn
cabcaf3dcb
Better error reporting on invalid column type.
2016-05-26 21:03:05 +02:00
gwenn
cbc479c484
Rustfmt
2016-05-20 18:36:44 +02:00
gwenn
0740620ffe
Merge remote-tracking branch 'jgallagher/master' into vtab
2016-05-20 18:31:30 +02:00
gwenn
ef6fcc8976
Merge remote-tracking branch 'jgallagher/master' into vtab
2016-05-19 22:10:58 +02:00
John Gallagher
6f8f2f3910
Fix clippy match_same_arms warning
2016-05-19 15:02:06 -05:00
gwenn
42d95f042f
Fix tests and improve InvalidColumnType error message.
2016-05-18 21:25:13 +02:00
John Gallagher
30733a3688
Modify Rows::next to tie its lifetime to the returned Row.
...
This means Rows no longer implements Iterator, but it is no longer
possible to misuse it by accessing a stale Row handle.
2016-05-18 11:41:22 -05:00
gwenn
94b4b7595c
Merge remote-tracking branch 'jgallagher/master' into vtab
2016-05-16 18:58:56 +02:00
John Gallagher
7b174c97f8
Add sanity check for insert
that does not do an insertion
2016-05-16 11:15:07 -05:00
John Gallagher
504b16dc98
Merge branch 'master' into gwenn-convenient
2016-05-16 11:02:56 -05:00
gwenn
5541cb06fe
Merge remote-tracking branch 'jgallagher/master' into vtab
2016-03-30 18:26:26 +02:00
John Gallagher
09dfa6afab
Move clippy allowance behind a cfg_attr
2016-03-29 16:36:00 -04:00
John Gallagher
41fe698cec
Address additional clippy warnings
2016-03-29 14:18:56 -04:00
John Gallagher
2bd54578f5
Update clippy version and address new warnings
2016-03-29 11:54:02 -04:00
gwenn
0fe1990d34
Fix clippy warnings
2016-02-14 16:11:59 +01:00
gwenn
933000b57a
Partial CSV virtual table implementation.
2016-02-08 18:06:11 +01:00
gwenn
f529d130b9
Rustfmt
2016-02-02 19:12:00 +01:00
gwenn
03bc69f815
Introduce exists and insert convenient methods
2016-02-01 20:42:50 +01:00
John Gallagher
726bd59932
Fix typo "rowss" in docs.
2016-01-07 11:36:01 -05:00
gwenn
12f26e78b3
Introduce RowIndex trait (like in rust-postgres)
2016-01-02 12:13:37 +01:00
John Gallagher
b241f98920
Add test and check for SQLite being in single-threaded mode
2015-12-16 23:56:21 -05:00
John Gallagher
2e082d7f94
Document new Error enum.
2015-12-16 23:51:24 -05:00
John Gallagher
2129cdb0f2
Add Send and Sync bounds to boxed errors to be comaptible with io::Error.
2015-12-16 20:30:27 -05:00
John Gallagher
047861b928
Move Error
into its own module (internal organization only - public API remains).
2015-12-16 20:30:27 -05:00