Commit Graph

1212 Commits

Author SHA1 Message Date
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
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
gwenn
33307b8cd5 [ci skip] remove unused feature 2018-09-08 11:11:56 +02:00
gwenn
b38fe372b6 [ci skip] fix doc 2018-09-08 11:10:08 +02:00
gwenn
d6b6058849
[ci skip] Fix Transaction doc 2018-09-05 18:08:39 +02:00
gwenn
b1fdc84dc9
Merge pull request #389 from gwenn/old-bindgen
Remove old bindgens
2018-09-04 21:06:55 +02:00
gwenn
9db7b2e7af Remove old bindgens
Keep the oldest/default one (3.6.8).
But remove intermediate versions: 3.6.11, 3.7.3, 3.7.4, 3.7.16.
2018-09-04 18:58:17 +02:00
gwenn
1f622e63c1
Merge pull request #388 from burmecia/patch-1
Update feature links to latest version 0.14.0
2018-09-01 17:34:13 +02:00
Bo Lu
f1990cab11
Update feature links to latest version 0.14.0
Seems the Optional Features section is still linked to v0.13.0, this PR is to update them to latest version 0.14.0
2018-09-01 23:15:37 +10:00
gwenn
a74ac8a5cd
Merge pull request #387 from gwenn/bindgen
Upgrade rust-bindgen version
2018-08-31 19:52:07 +02:00
gwenn
6e7b35ae15 Upgrade rust-bindgen version 2018-08-31 19:01:26 +02:00
gwenn
079833fafa
Merge pull request #386 from gwenn/appveyor
Clean AppVeyor build script
2018-08-31 18:25:50 +02:00
gwenn
bca3d52848
Merge pull request #385 from gwenn/array_fix
`array` feature should not require `bundled` #384
2018-08-30 21:49:12 +02:00