Commit Graph

1924 Commits

Author SHA1 Message Date
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
gwenn
d94acdc3f4
Merge pull request #476 from gwenn/pragma
Ease PRAGMA usage (#273 and #265)
2019-02-27 18:03:35 +01:00
gwenn
ec80e460b6
Merge pull request #487 from thomcc/avoid-unnecessary-copies
Avoid unnecessary copies/allocations when passing strings to sqlite
2019-02-27 17:40:59 +01:00
Thom Chiovoloni
04f900059d Avoid unnecessary copies/allocations when passing strings to sqlite 2019-02-26 19:47:17 -08:00
gwenn
32881d7a76 Unify callback parameter signature 2019-02-21 21:14:55 +01:00
gwenn
7be87e950d Merge remote-tracking branch 'jgallagher/master' into pragma 2019-02-21 21:07:18 +01:00
gwenn
a0bd73221d
Merge pull request #485 from gwenn/fix-query-row
Do not panic by default
2019-02-21 21:05:02 +01:00
gwenn
6d9ae896b5 Do not panic by default
Replace `Row::get` by `Row::get_checked`,
And rename original `Row::get` to `Row::get_unwrap`.
`Stmt::query_map`, `Stmt::query_map_named`, `Stmt::query_row`,
`Conn::query_row` and `Conn::query_row_named` callback parameter must return a `Result`.
2019-02-21 20:48:09 +01:00
gwenn
fcaf5b9dd8 Fix typos 2019-02-21 18:55:51 +01:00
technic93
6e8276d1d0
Clarify instruction for building with vcpkg
Mention VCPKGRS_DYNAMIC environment variable.
2019-02-17 12:03:19 +01:00