Commit Graph

46 Commits

Author SHA1 Message Date
Thom Chiovoloni
fe80b51e89 Allow specifying both sqlcipher and bundled.
This is useful because currently, when using `rusqlite` in a Cargo
workspace with one crate that uses `sqlcipher` and another that uses
`bundled`, a build error will be triggered by an unqualified `cargo
build` (as cargo will use the union of all features enabled by crates in
the workspace).

Instead of panicing, this just emits a warning, before (mostly) ignoring
that the `bundled` feature was specified. Note: in this configuration,
we still use our bundled bindings, to avoid changing `rusqlite` to
handle this edge case (hence 'mostly').
2019-04-19 11:57:29 -07:00
Simon Bernier St-Pierre
c42175a424 add support for Uuid 2019-04-08 14:19:42 -04:00
Thom Chiovoloni
5ba6909921 Add optional support for rust-url 2019-03-09 19:16:37 -08: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
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
abe1792f59 array feature should not require bundled #384
Minimal fix
2018-08-30 21:15:38 +02:00
gwenn
0ccf98d214 Merge remote-tracking branch 'jgallagher/master' into vtab 2018-08-11 13:37:56 +02:00
gwenn
6cbeb6ef59 Introduce context module
To make `set_result` and `report_error` in functions module
visible to vtab module.
2018-05-13 11:44:31 +02:00
gwenn
1e3dc542a4 Merge remote-tracking branch 'jgallagher/master' into vtab 2018-05-06 08:00:12 +02:00
gwenn
9c5c9e3c7e Merge remote-tracking branch 'jgallagher/master' into vtab 2018-04-30 22:02:14 +02:00
gwenn
c612a44207 Fix errors relative to OpenFlags
Also handle extended error codes.
2018-03-24 10:15:10 +01:00
gwenn
3aaab1e36f Merge remote-tracking branch 'remotes/jgallagher/master' into vtab 2018-01-20 12:29:07 +01:00
gwenn
96103b0662 Merge remote-tracking branch 'jgallagher/master' into hooks 2018-01-20 10:08:40 +01:00
Lorenzo Villani
8cbfc00ec6 Add support for linking to SQLCipher 2017-10-24 19:52:19 +02:00
gwenn
3b575c3b4a Implementation of sqlite3_update_hook #260
First draft (no tested and a memory leak)
2017-04-25 20:58:22 +02:00
gwenn
7f0082e44e Merge remote-tracking branch 'jgallagher/master' into vtab 2017-03-08 20:35:07 +01:00
John Gallagher
ab1f784b5e Add buildtime_bindgen tests to CI. 2017-03-03 15:47:42 -05:00
gwenn
a5ff2387fa Add comments in build scripts (#244) 2017-03-03 21:15:54 +01:00
John Gallagher
5dbfa2850e Manually insert SQLITE_DETERMINISTIC flag in bindgen output if needed.
See comment in libsqlite3-sys/build.rs for details - adding this flag is
harmless if it's not present in the header, and not having it can break
builds against older SQLite versions.
2017-02-08 21:41:34 -05:00
John Gallagher
5f871b9784 Update travis.yml 2017-02-08 20:55:28 -05:00
gwenn
359ec914d2 Expose limits (#220) 2017-02-04 11:01:38 +01:00
gwenn
46df930881 Merge remote-tracking branch 'jgallagher/master' into vtab 2016-12-31 09:15:26 +01:00
John Gallagher
432966ac77 Add explicit bundled build to CI checks 2016-12-31 01:04:25 -05:00
Omar Ferrer
cf29cf8c87 Added bundled to be tested too in both remote CI 2016-10-08 01:48:38 -04:00
gwenn
1bb177047e Merge remote-tracking branch 'jgallagher/master' into vtab 2016-05-19 21:24:17 +02:00
John Gallagher
ed72da92ef Remove cache feature 2016-05-17 12:01:55 -05:00
John Gallagher
b76196ae1a Merge branch 'master' into gwenn-stmt-cache 2016-05-17 08:54:47 -05:00
gwenn
f1e0e10138 Merge remote-tracking branch 'jgallagher/master' into vtab 2016-05-16 18:38:15 +02:00
John Gallagher
24024b90b6 Add serde_json feature to CI checks 2016-05-16 10:15:05 -05:00
gwenn
df245d1718 Add chrono feature to CI files. 2016-02-23 18:28:39 +01:00
gwenn
7a9697ca2c Fix Travis config file 2016-02-13 09:23:59 +01:00
gwenn
80e895192e Activate vtab feature in CI builds. 2016-02-12 20:20:12 +01:00
John Gallagher
0afdc111d1 Merge branch 'master' into gwenn-stmt-cache 2016-01-07 15:53:23 -05:00
John Gallagher
abc5d9e219 Test all features on Travis 2016-01-07 15:15:43 -05:00
gwenn
1ec2dee533 Ensure features documentation is generated. 2015-12-19 17:22:54 +01:00
Gwenael Treguier
86ffc24bb9 Merge branch 'master' of https://github.com/jgallagher/rusqlite into stmt-cache 2015-12-18 20:25:52 +01:00
Gwenael Treguier
8d84e2b076 Activate cache feature in travis. 2015-12-18 20:21:41 +01:00
John Gallagher
0e61905a8b Remove doc publishing from .travis.yml 2015-12-16 15:54:31 -05:00
John Gallagher
caf1e95e31 Add functions feature to travis and Changelog. 2015-12-11 16:28:46 -05:00
John Gallagher
09825dbd90 Add feature tests to Travis 2015-12-10 16:33:46 -05:00
John Gallagher
270abfc44f Update to travis CI's container-based infrastructure 2015-11-03 11:33:52 -05:00
John Gallagher
3eb2c333db Only publish docs from master 2015-05-03 21:50:50 -04:00
John Gallagher
91987c9101 Have travis push docs to github pages instead of rust-ci 2015-05-03 21:42:48 -04:00
John Gallagher
79ca9ea4a4 Update travis.yml to upload docs 2014-11-04 13:59:08 -05:00
John Gallagher
3a9a3e1903 Add hooks for rust-ci docs 2014-11-04 12:50:47 -05:00
John Gallagher
76be900c8c Add travis-ci 2014-11-04 11:37:40 -05:00