Commit Graph

2086 Commits

Author SHA1 Message Date
gwenn
372291c65e
Merge pull request #441 from gwenn/2018
Rust 2018 idioms
2018-12-07 22:11:15 +01:00
gwenn
1e08729306 [ci skip] Fix README 2018-12-07 22:08:48 +01:00
gwenn
d874180333 Rust 2018 idioms 2018-12-07 21:57:04 +01:00
gwenn
92020d54b7
Merge pull request #423 from gwenn/2018
Rust 2018
2018-12-06 19:31:27 +01:00
gwenn
dc49b28520 Fix some clippy warnings 2018-12-06 19:00:55 +01:00
gwenn
626118ce07 Merge remote-tracking branch 'jgallagher/master' into 2018 2018-12-06 18:50:21 +01:00
gwenn
52607646dc
Merge pull request #436 from gwenn/bindgen
Upgrade to bindgen 0.44
2018-11-30 21:51:10 +01:00
gwenn
d5ce4c234b Upgrade to bindgen 0.44 2018-11-30 18:55:25 +01:00
gwenn
a6cd3ac1aa
Merge pull request #434 from gwenn/time
Fix Timespec FromSql implementation (#431)
2018-11-22 17:18:54 +01:00
gwenn
000566811f Clippy 2018-11-22 16:53:44 +01:00
gwenn
2b8eee2b83 Fix Timespec FromSql implementations (#431)
Make sure SQLite built-in CURRENT_TIMESTAMP output is
supported.
2018-11-22 16:50:10 +01:00
gwenn
3a178d6d17 Check chrono FromSql implementations
Make sure SQLite built-in CURRENT_DATE/TIME/TIMESTAMP output is
supported.
2018-11-22 16:43:19 +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
e25f39e739
Merge pull request #428 from gwenn/try
Replace `try!` by `?`
2018-11-05 19:59:56 +01:00
gwenn
ccf52b2daa Replace try! by ? 2018-11-05 19:09:41 +01:00
gwenn
7847db5f97
Merge pull request #427 from gwenn/ci_perf
Try to improve CI builds duration
2018-11-01 12:38:26 +01:00
gwenn
382584d15b Try to improve CI builds duration
Activate fast_finish on Travis
Disable static build on AppVeyor
2018-11-01 11:39:49 +01:00
gwenn
d44203116a
Merge pull request #426 from gwenn/deprecated
Remove deprecated stuff
2018-11-01 11:05:40 +01:00
gwenn
31767cf776
Merge pull request #425 from gwenn/clippy
Clippy
2018-11-01 10:32:00 +01:00
gwenn
2357acd79e Remove deprecated stuff 2018-11-01 10:30:18 +01:00
gwenn
e7d3920579 Scoped lints are experimental 2018-11-01 09:56:38 +01:00
gwenn
495f1d529a Clippy 2018-11-01 09:40:56 +01:00
gwenn
1262238229 Rustfmt 2018-10-30 20:15:19 +01:00
gwenn
f04047db01 Rust 2018 2018-10-30 20:15:08 +01:00
gwenn
ebc3609a09
Merge pull request #422 from gwenn/full
Allow build time bindgen of bundled SQLite
2018-10-28 18:45:48 +01:00
gwenn
e5b1af51ab Allow build time bindgen of bundled SQLite
Rewrite https://github.com/jgallagher/rusqlite/pull/320
2018-10-28 18:16:48 +01:00
gwenn
e894b7c3b2
Merge pull request #420 from gwenn/interrupt
Try to fix test_interrupt #415
2018-10-28 13:33:09 +01:00
gwenn
77cb50e000 Check that only one statement is provided (#397)
Connection.execute
Connection.execute_named
Connection.quer_row
Connection.quer_row_named
2018-10-28 10:29:34 +01:00
gwenn
47d3ac7027 Try to fix test_interrupt #415
Use a scalar function to make sure the interrupt is performed
while the statement is running.
2018-10-28 09:54:30 +01:00
gwenn
ebf98b4241
Merge pull request #419 from gwenn/fmt
Rustfmt
2018-10-28 09:30:47 +01:00
gwenn
ea14ae58b8
Merge pull request #418 from gwenn/bindgen
Upgrade to bindgen 0.43
2018-10-28 09:00:18 +01:00
gwenn
1598d4bc30 Rustfmt 2018-10-28 08:51:02 +01:00
gwenn
567e36424b Upgrade to bindgen 0.43 2018-10-28 08:33:25 +01:00
gwenn
03561e36fb
Merge pull request #417 from vladh/patch-1
Update README example.
2018-10-24 18:09:07 +02:00
Vlad-Ștefan Harbuz
2e397aa53d
Update README example.
The code example from the documentation's latest version contains some important updates, such as the usage of `NO_PARAMS`. The README should be updated to reflect this.
2018-10-24 12:22:54 +02:00
gwenn
6acae37f4c
[ci skip] prepare version 0.15.0 2018-10-21 15:45:10 +02:00
gwenn
ea778f8141
[ci skip] prepare version 0.15.0 2018-10-21 15:41:25 +02:00
gwenn
b4f93328f6
[ci skip] prepare version 0.10.0 2018-10-21 15:40:32 +02:00
gwenn
3c574550f0
[ci skip] Prepare version 0.15.0 2018-10-21 15:38:15 +02:00
gwenn
0d08bf5e05
Merge pull request #411 from thomcc/i128_blob
Add a feature for storing i128 as blobs.
2018-10-19 21:49:09 +02:00
gwenn
b5fcbb6b80
Merge pull request #414 from thomcc/get-raw
Allow getting a ValueRef out of Row and Context, fixes #259
2018-10-19 21:39:52 +02:00
Thom Chiovoloni
3d82f7199a Allow getting a ValueRef out of Row and Context, fixes #259 2018-10-18 12:14:38 -07:00
gwenn
73d7606ebc
Merge pull request #413 from mlfaw/mlfaw-patch-1
Remove version check when bundled
2018-10-16 18:09:23 +02:00
Joe
e109554819
Remove version check when bundled 2018-10-16 01:30:35 +00:00
gwenn
aab179e13d
Merge pull request #410 from gwenn/upgrade
Upgrade bindgen and SQLite bundled sources
2018-10-10 21:06:43 +02:00
gwenn
382cac1abb Try to fix AppVayor build 2018-10-10 20:23:40 +02:00
Thom Chiovoloni
572471c40f Add a feature for storing i128 as blobs.
This is behind the `i128_blob` feature.

Blobs are stored as 16 byte big-endian values, with their most significant bit
flipped. This is so that sorting, comparison, etc all work properly, even with
negative numbers. This also allows the representation to be stable across
different computers.

It's possible that the `FromSql` implementation should handle the case that the
real value is stored in an integer. I didn't do this, but would be willing to
make the change. I don't think we should store them this way though, since I
don't think users would be able to sort/compare them sanely.

Support for `u128` is not implemented, as comparison with i128 values would work
strangely. This also is consistent with `u64` not being allowed, not that I
think that would be reason enough on it's own.

The `byteorder` crate is used if this feature is flipped, as it's quite small
and implements things more or less optimally. If/when `i128::{to,from}_be_bytes`
gets stabilized (https://github.com/rust-lang/rust/issues/52963), we should
probably use that instead.
2018-10-08 12:22:28 -07:00
gwenn
7176be2d6d
Merge pull request #408 from thomcc/interrupt_handle
Add a method of interrupting a query executing on a separate thread, fixes #407
2018-10-08 18:37:30 +02:00
gwenn
557156fef7 Upgrade bindgen and SQLite bundled sources 2018-10-07 11:57:21 +02:00
gwenn
ef45312125
Merge pull request #404 from gwenn/into-iterator
Take IntoIterator rather than `&[&ToSql]` (#312)
2018-10-07 11:29:02 +02:00