Commit Graph

2224 Commits

Author SHA1 Message Date
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
Thom Chiovoloni
b4565f565a Add a method of interrupting a query executing on a separate thread, fixes #407 2018-09-26 13:42:30 -07:00
gwenn
ab4c8cdf92
Merge pull request #406 from gwenn/bindgen-3.25
Upgrade bundled version to SQLite 3.25.0
2018-09-17 21:42:41 +02:00
gwenn
6f5ffa2f19 Regenerate bindgen on linux 2018-09-17 19:39:49 +02:00
gwenn
fde3a59488 Upgrade bundled version to SQLite 3.25.0 2018-09-17 18:42:19 +02:00
gwenn
e7e03c3443 Introduce NO_PARAMS constant
As suggested here:
https://users.rust-lang.org/t/sql-parameter-values/20469/2
2018-09-16 11:10:19 +02:00
gwenn
c4ae541eac Take IntoIterator rather than &[&ToSql] (#312) 2018-09-16 09:49:23 +02:00
gwenn
bd1756adef
Merge pull request #401 from gwenn/readonly
Impossible to execute a pragma in 0.14.0 #400
2018-09-12 23:02:59 +02:00
gwenn
70b59f9c2c Impossible to execute a pragma in 0.14.0 #400
sqlite3_stmt_readonly does not work for PRAGMA.
2018-09-12 22:16:22 +02:00
gwenn
3c33ec1ab2
Merge pull request #396 from gwenn/upgrade-bindgen
Upgrade to bindgen 0.40
2018-09-08 12:06:00 +02:00
gwenn
27939d01c9 Upgrade to bindgen 0.40 2018-09-08 11:19:24 +02:00
gwenn
b6e94a60ca
Merge pull request #395 from gwenn/fix-feature
[ci skip] remove unused feature
2018-09-08 11:13:52 +02:00
gwenn
cbe4afb1bc
Merge pull request #394 from gwenn/fix-doc
[ci skip] fix doc
2018-09-08 11:13:32 +02:00