Commit Graph

1833 Commits

Author SHA1 Message Date
gwenn
031bffffa5 Add query_row_named for prepared statement. 2019-06-12 19:18:57 +02:00
gwenn
ec319b32bb
Merge pull request #526 from gwenn/fix-nightly-build
Fix nightly build
2019-06-02 09:28:34 +02:00
gwenn
62f2dcdfa4
Merge pull request #527 from gwenn/fmt
[ci skip] rustfmt
2019-06-02 09:13:52 +02:00
gwenn
db74fda4d8 [ci skip] rustfmt 2019-06-02 09:12:51 +02:00
gwenn
d1cc5e9658
Merge pull request #525 from gwenn/warning
Fix warning: the item `X` is imported redundantly
2019-06-02 09:08:31 +02:00
gwenn
bb70718ca1 Fix nightly build
error[E0277]: the type
`std::cell::UnsafeCell<std::option::Option<std::boxed::Box<std::cell::RefCell<regex::exec::ProgramCacheInner>>>>`
may contain interior mutability and a reference may not be safely
transferrable across a catch_unwind boundary
2019-06-02 09:04:47 +02:00
gwenn
93b5c10816 Fix warning: the item X is imported redundantly 2019-06-02 08:36:16 +02:00
gwenn
c87c49cd35
Merge pull request #522 from pimeys/master
Increase bundled SQLite variables and depth
2019-05-15 21:13:46 +02:00
Julius de Bruijn
bf0eea5d60 Rerun build if max vars or exprs change in the env 2019-05-15 20:23:20 +02:00
Julius de Bruijn
d034cd56b7 Get MAX_VARIABLE_NUMBER and EXPR_DEPTH as env variables 2019-05-15 18:41:23 +02:00
Julius de Bruijn
4b9295c186 Increase bundled SQLite variables and depth
We've been hitting the default `MAX_VARIABLE_NUMBER` and
`MAX_EXPR_DEPTH` with quite basic tests here in Prisma. I was able to
run the tests by using the Arch Linux packaged libsqlite3, but when
turning on the bundled version I was able to get my test to crash with
this test project:

https://github.com/pimeys/sqlite_parameter_test

Now taking a look how Arch Linux builds sqlite, I was able to find two
flags fixing the issue:

https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/sqlite#n35

I think it would be safe to include them in rusqlite.
2019-05-15 10:33:22 +02:00
gwenn
dfa937934d
Merge pull request #520 from gwenn/fix-doc
[ci skip] Fix rustdoc
2019-05-11 13:07:08 +02:00
gwenn
860cf69660 [ci skip] Fix rustdoc
"impl ToSql for NaiveDateTime" documentation is slightly inconsistent
with behavior #519
2019-05-11 13:05:15 +02:00
gwenn
584d94dcf6
Merge pull request #515 from derekdreery/patch-1
Fix error when building with `uuid` and `functions` features.
2019-04-28 12:41:10 +02:00
Richard Dodd (dodj)
0cdde751a6
Add uuid feature to some tests in travis 2019-04-27 09:50:28 +01:00
Richard Dodd
6c837a3f51 Fix other failing case 2019-04-26 15:30:49 +01:00
Richard Dodd (dodj)
5430715982
Fix error when building with uuid and functions features. 2019-04-26 15:15:07 +01:00
gwenn
6ba8934cba
Merge pull request #513 from gwenn/3.28
Upgrade bundled SQLite sources to 3.28.0
2019-04-25 19:15:47 +02:00
gwenn
13ee12cb0c Upgrade bundled SQLite sources to 3.28.0
Also upgrade bindgen to 0.49
2019-04-25 18:50:21 +02:00
gwenn
9b78f6e3f7 Prepare 0.18.0 release 2019-04-24 18:07:04 +02:00
gwenn
c0e6a584ad Prepare 0.14.0 release 2019-04-24 18:03:11 +02:00
gwenn
3a382d2fb9
Merge pull request #511 from thomcc/no-sqlcipher-bundled-panic
Allow specifying both `sqlcipher` and `bundled`.
2019-04-23 18:42:09 +02:00
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
gwenn
066a7e25e1
Merge pull request #507 from sbstp/patch-1
Typo in the README
2019-04-11 21:23:12 +02:00
sbstp
85efa19646
Typo in the README 2019-04-10 20:04:39 -04:00
gwenn
85454c04ec
Merge pull request #506 from sbstp/add-uuid
Add support for Uuid
2019-04-09 21:14:42 +02:00
Simon Bernier St-Pierre
c42175a424 add support for Uuid 2019-04-08 14:19:42 -04:00
gwenn
22614c64bd
Merge pull request #501 from thomcc/box-dyn-tosql
impl ToSql for Box<dyn ToSql>. Fixes #500
2019-03-28 18:10:59 +01:00
Thom Chiovoloni
d8074b1ece impl ToSql for Box<dyn ToSql>. Fixes #500 2019-03-27 19:36:11 -07:00
Konrad Borowski
f5072b8e0f Allow non-Unicode file names on Unix-like platforms 2019-03-26 10:20:22 +01:00
gwenn
b24f3c5519
Merge pull request #483 from technic/master
Clarify instruction for building with vcpkg
2019-03-25 20:00:36 +01:00
Alex Maystrenko
4d2f2c0833 Remove note about rebuilding, because env change tracked automatically 2019-03-24 21:24:28 +01:00
Alex Maystrenko
f702bc0797 rebuild when VCPKGRS_DYNAMIC changes 2019-03-24 21:21:13 +01:00
gwenn
3d088ac348
Merge pull request #497 from gwenn/clippy
Rustfmt + clippy
2019-03-22 19:30:42 +01:00
gwenn
80205da623 Rustfmt + clippy 2019-03-21 19:13:55 +01:00
gwenn
4ef5bcaf55
Merge pull request #495 from gwenn/decltype
Introduce Statement::columns
2019-03-19 21:42:08 +01:00
gwenn
e20d505d0a
Merge pull request #496 from gwenn/fallible
Upgrade to fallible-iterator 0.2
2019-03-19 21:30:11 +01:00
gwenn
98ca4ad6f4 Try to fix CI builds 2019-03-19 21:01:30 +01:00
gwenn
cfbce6f376 Upgrade to fallible-iterator 0.2 2019-03-19 20:56:13 +01:00
gwenn
ceb1ce4a55 Rustfmt 2019-03-19 20:45:04 +01:00
gwenn
4703358866 Fix module visibility 2019-03-19 20:43:40 +01:00
gwenn
38e92159fb Introduce Statement::columns
Return Columns name and type. (#494)
2019-03-19 20:33:36 +01:00
gwenn
1013571186 [ci skip] Prepare version 0.17.0 2019-03-10 14:21:29 +01:00
gwenn
a12d1769ed
Merge pull request #492 from gwenn/3.27.2
Upgrade bundled version to SQLite 3.27.2
2019-03-10 14:08:46 +01:00
gwenn
e760344351 Upgrade bundled version to SQLite 3.27.2
And upgrade to bindgen 0.48
2019-03-10 13:49:21 +01:00
gwenn
ac0baecfe2
Merge pull request #478 from gwenn/fallible-iterator
Make `Rows` implement `FallibleStreamingIterator`
2019-03-10 13:13:34 +01:00
gwenn
71a2004894 Add Rows::map method 2019-03-10 12:58:20 +01:00
gwenn
59a44cfae5 Merge remote-tracking branch 'jgallagher/master' into fallible-iterator 2019-03-10 11:12:14 +01:00
gwenn
ec0cc432fa
Merge pull request #491 from thomcc/url-support
Add optional support for rust-url
2019-03-10 08:58:59 +01:00
Thom Chiovoloni
5ba6909921 Add optional support for rust-url 2019-03-09 19:16:37 -08:00