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
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
gwenn
a75e60803c
Attempt to clean AppVeyor build script
2018-08-30 21:21:32 +02:00
gwenn
abe1792f59
array
feature should not require bundled
#384
...
Minimal fix
2018-08-30 21:15:38 +02:00
gwenn
a75b614ecf
[ci skip] Add maintenance badge
2018-08-26 07:23:41 +02:00
gwenn
e4b8d2779f
[ci skip] Prepare 0.14.0
2018-08-17 17:48:53 +02:00
gwenn
2cf4983afa
[ci skip] Update changelog
2018-08-16 19:19:20 +02:00
gwenn
d1b2104b89
Merge pull request #339 from gwenn/0.14
...
Prepare next release
2018-08-16 19:15:24 +02:00
gwenn
5e9c7bac4e
Rustfmt
2018-08-16 18:29:46 +02:00
gwenn
33271764b1
Merge remote-tracking branch 'jgallagher/master' into 0.14
2018-08-16 17:47:55 +02:00
gwenn
cfcf858239
Update Changelog
2018-08-16 17:47:31 +02:00
gwenn
e72f50de53
Merge pull request #383 from gwenn/callbacks
...
Add constraints on callbacks
2018-08-16 17:40:18 +02:00
gwenn
8c6ce46c17
Make sure scalar functions and hooks outlive the connection
2018-08-15 20:04:01 +02:00
gwenn
4770060396
Make sure scalar functions and hooks are Send
able
2018-08-15 18:30:18 +02:00
gwenn
ec53f19be1
Backup progress callback can be Fn
.
2018-08-15 18:00:58 +02:00
gwenn
e7d128c842
Merge pull request #382 from gwenn/bindgen
...
Upgrade to bindgen 0.38
2018-08-15 17:38:36 +02:00
gwenn
d1b5acfe52
Upgrade to bindgen 0.38
2018-08-15 13:58:04 +02:00
gwenn
199fe2c2b5
Merge pull request #381 from gwenn/misc
...
[ci skip] Update Readme
2018-08-11 17:53:51 +02:00
gwenn
b054daeac2
[ci skip] Update Readme
...
Add doc badge.
Fix some urls.
2018-08-11 17:51:05 +02:00
gwenn
754a742433
[ci skip] Remove contributors file
...
The list is already available here:
https://github.com/jgallagher/rusqlite/graphs/contributors
2018-08-11 14:38:06 +02:00
gwenn
b4aadcf4a9
Merge pull request #380 from gwenn/features
...
[ci skip] Add new features in README
2018-08-11 14:27:06 +02:00
gwenn
e1a14011cf
[ci skip] Add new features in README
2018-08-11 14:25:10 +02:00
gwenn
8c0183482f
Merge pull request #130 from gwenn/vtab
...
Virtual Table
2018-08-11 13:58:41 +02:00
gwenn
0ccf98d214
Merge remote-tracking branch 'jgallagher/master' into vtab
2018-08-11 13:37:56 +02:00
gwenn
557af7627c
Merge pull request #379 from gwenn/rustfmt
...
Rustfmt
2018-08-11 13:16:04 +02:00
gwenn
c925d1aa97
Rustfmt
2018-08-11 12:48:21 +02:00