Commit Graph

894 Commits

Author SHA1 Message Date
gwenn
11ee69b571
Merge pull request #371 from gwenn/pub-crate
Use pub(crate)
2018-08-01 18:13:18 +02:00
gwenn
7310cac6f5 Use pub(crate) 2018-07-31 22:17:17 +02:00
gwenn
be6ea9b665
Merge pull request #370 from gwenn/tx
Use `sqlite3_get_autocommit` instead of our own flag/status
2018-07-28 20:35:36 +02:00
gwenn
a5403eb05f Replace PRAGMA call by Rust busy_timeout function 2018-07-28 17:04:10 +02:00
gwenn
88ac29abfe Upgrade to last stable version of Rust 2018-07-28 17:04:10 +02:00
gwenn
73ebce5f98 Add binding to sqlite3_busy_timeout and sqlite3_busy_handler. 2018-07-28 17:04:10 +02:00
gwenn
9ecb1eef55
Merge pull request #369 from gwenn/busy
Add binding to sqlite3_busy_timeout and sqlite3_busy_handler.
2018-07-28 16:39:38 +02:00
gwenn
5e1e805b4f Use sqlite3_get_autocommit instead of our own flag/status 2018-07-28 16:04:42 +02:00
gwenn
e9b3fd6165 Upgrade to last stable version of Rust 2018-07-28 15:43:54 +02:00
gwenn
18953a8798
Merge pull request #367 from kornelski/master
Roll back uncommitable transactions
2018-07-28 15:39:45 +02:00
Kornel
b075592147 Test transaction recovery from sqlite busy error 2018-07-28 12:58:05 +01:00
gwenn
aec3bd5227
Merge pull request #368 from gwenn/cow
Cow<str> now implements ToSql.
2018-07-28 12:18:44 +02:00
gwenn
558104de4d Add binding to sqlite3_busy_timeout and sqlite3_busy_handler. 2018-07-28 12:10:57 +02:00
gwenn
5351d88bc0 Cow<str> now implements ToSql. 2018-07-28 08:01:24 +02:00
Kornel
2487b18db0 Avoid keeping transactions unexpectedly open
If transaction can't be automatically committed, roll it back to prevent transaction staying open past the lifetime of the Transaction object

Fixes #366
2018-07-27 17:18:47 +01:00
Kornel
1e29cf4a0f Mark self.committed only after command succeeds
Fixes #366
2018-07-27 17:18:39 +01:00
gwenn
a7479488b8
Merge pull request #365 from gwenn/3.24.0_linux
Upgrade SQLite bundled sources to 3.24.0
2018-07-14 08:25:03 +02:00
gwenn
94c6865d28 Upgrade SQLite bundled sources to 3.24.0 2018-07-14 07:53:01 +02:00
gwenn
babed74866
Merge pull request #362 from bedax/master
Exporting the built library's directory, for linking
2018-07-08 07:26:05 +02:00
gwenn
a8072e5583
Merge pull request #361 from miniyou/patch-1
README.md – fix link to cargo features docs
2018-07-08 07:23:07 +02:00
Hampus Bengtsson
dade8dd80f
README.md – fix link to cargo features docs 2018-06-30 21:28:24 +02:00
Tom
028d8945a3 Exporting the built library's directory, for linking 2018-06-29 23:20:59 +01:00
gwenn
33d40aac10
Merge pull request #360 from gwenn/clippy
Fix clippy warnings
2018-06-28 21:01:26 +02:00
gwenn
2ea17d0b54 Fix clippy warnings
Calling OpenFlags::default() is more clear than this expression
2018-06-28 20:46:28 +02:00
gwenn
42bc9ea8f8
Merge pull request #358 from gwenn/clippy
Fix some clippy warnings
2018-06-20 19:23:00 +02:00
gwenn
9c7a5583b9 Fix some clippy warnings
* Rows cannot implement iterator
* DatabaseName is passed by value => Copy ?
2018-06-20 19:07:23 +02:00
gwenn
253b0f390e
Merge pull request #357 from gwenn/count
* Replace column index/count type (i32) with usize.
* Replace parameter index/count type (i32) with usize.
* Replace row changes/count type (i32) with usize.
2018-05-23 21:57:46 +02:00
gwenn
0d0a7bf81f Replace row changes/count type (i32) with usize
Breaking change
2018-05-23 21:23:28 +02:00
gwenn
c6f4ae632a Replace column index/count type (i32) with usize
Breaking change
2018-05-23 21:04:13 +02:00
gwenn
5c44ed79d3 Fix tests 2018-05-23 20:18:18 +02:00
gwenn
9cbb9d12f4
Merge pull request #356 from jgallagher/deps
Upgrade bindgen version
2018-05-23 19:19:13 +02:00
gwenn
7369994fd3 Upgrade bindgen version 2018-05-23 18:51:22 +02:00
gwenn
1f0437c084
Merge pull request #344 from gwenn/rerun-if-env-changed
Use `rerun-if-env-changed` in libsqlite3-sys
2018-05-12 19:16:50 +02:00
gwenn
6855b5052d
Ensure connection can be safely returned to a pool (#353)
* Add binding to sqlite3_get_autocommit.
* Add binding to sqlite3_stmt_busy.
* Disable test_is_busy by default
2018-05-12 18:35:08 +02:00
gwenn
89f38b4098
Merge pull request #352 from jgallagher/fix-coherence-issue
merge coherence issue fix
2018-05-12 10:30:57 +02:00
gwenn
88f2f3e4bd
Merge pull request #350 from jgallagher/clippy
Fix clippy warnings
2018-05-04 20:44:34 +02:00
gwenn
994d40da26 Fix clippy warnings 2018-05-04 19:55:55 +02:00
gwenn
84326a77dc
Merge pull request #349 from gwenn/unlock-notify
Unlock notify
2018-05-04 19:53:08 +02:00
gwenn
403e840c4a Fix clippy warnings 2018-05-04 19:05:48 +02:00
gwenn
b0e22fc372 Wait in a loop 2018-05-04 18:07:11 +02:00
gwenn
fee4bfcc86 Merge remote-tracking branch 'jgallagher/master' into unlock-notify 2018-05-04 18:06:41 +02:00
gwenn
361d4ca602
Merge pull request #348 from jgallagher/upgrade-deps
Upgrade regexp dependency
2018-05-02 19:04:20 +02:00
gwenn
9c36d29f5e Upgrade regexp dependency 2018-05-02 18:21:35 +02:00
gwenn
d51b24fb5f
Merge pull request #346 from gwenn/upgrade-deps
Upgrade dependencies
2018-04-27 19:41:02 +02:00
gwenn
41c74cd15e Merge remote-tracking branch 'jgallagher/master' into upgrade-deps 2018-04-27 19:12:33 +02:00
gwenn
cd26d53a23 Upgrade dependencies
bindgen 0.36
lazy_static 1.0
2018-04-27 19:06:34 +02:00
gwenn
9178e3f452 Use rerun-if-env-changed in libsqlite3-sys
Fix #329
2018-04-06 22:27:07 +02:00
gwenn
21104e03cc
Merge pull request #343 from gwenn/upgrade-deps
Upgrade dependencies
2018-04-06 22:13:06 +02:00
gwenn
7c4105afd9 Upgrade dependencies
bindgen from 0.32 to 0.35
lazy_static from 0.2 to 1.0
2018-04-06 21:37:03 +02:00
gwenn
83775ee62d Remove second field from RawStatement
Use sqlite3_db_handle instead
2018-04-03 20:18:51 +02:00