Commit Graph

887 Commits

Author SHA1 Message Date
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
5e1e805b4f Use sqlite3_get_autocommit instead of our own flag/status 2018-07-28 16:04:42 +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
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
gwenn
7f6d7f3346
Merge pull request #319 from traviscross/fix/datetime-format-rfc3339
Fix date/time format for SQLite, use RFC 3339
2018-04-03 19:45:44 +02:00
gwenn
a0151f9073 Introduce is_locked 2018-03-31 10:22:19 +02:00
gwenn
cccdf9735f Factorize check on code returned by prepare/step. 2018-03-27 21:49:09 +02:00
gwenn
78511d6257
Merge pull request #334 from gwenn/stmt-cache
Fix statement cache
2018-03-27 21:26:42 +02:00
gwenn
2aebdeb46a
Merge pull request #341 from gwenn/column-index
Make Statement::column_index case insensitive (#330)
2018-03-27 21:14:00 +02:00
gwenn
7f193c03f1 Upgrade stable version used by appveyor 2018-03-27 20:40:41 +02:00
gwenn
50d379b564 Make Statement::column_index case insensitive
Fix #330
2018-03-27 20:07:46 +02:00