Commit Graph

796 Commits

Author SHA1 Message Date
John Gallagher
51f6a24d60 Set build flags for bundled libsqlite.
Build flags from @chamakits; see https://github.com/jgallagher/rusqlite/pull/176.
2016-12-31 01:02:29 -05:00
John Gallagher
ff70f78ff3 Merge branch 'master' of https://github.com/photex/rusqlite into photex-master 2016-12-31 00:55:01 -05:00
John Gallagher
f7e14eef42 Merge pull request #196 from jgallagher/gwenn-invalid-column-type
Better error reporting on invalid column type.
2016-12-31 00:44:31 -05:00
John Gallagher
48a84a1440 Add Error changes to Changelog. 2016-12-31 00:39:19 -05:00
John Gallagher
2e140d0684 FromSqlError::cause() returns other error's cause directly (possibly None). 2016-12-31 00:36:52 -05:00
John Gallagher
4181441d63 Merge branch 'master' into gwenn-invalid-column-type 2016-12-31 00:35:47 -05:00
John Gallagher
2b437cb1ee Merge pull request #195 from jgallagher/gwenn-query-row
Add Statement.query_row convenient method
2016-12-31 00:11:41 -05:00
John Gallagher
ff311ec29a Add Statement::query_row note to Changelog. 2016-12-31 00:04:23 -05:00
gwenn
bc71c58387 Add Statement.query_row convenient method (#179) 2016-12-31 00:03:55 -05:00
John Gallagher
a0b0f77b3e Merge pull request #194 from jgallagher/gwenn-flush-cache
Ensure cache is flushed when closing the connection
2016-12-31 00:03:46 -05:00
John Gallagher
674419e080 Add bugfix note to Changelog 2016-12-30 23:58:12 -05:00
John Gallagher
08d88177e7 Merge branch 'flush-cache' of https://github.com/gwenn/rusqlite into gwenn-flush-cache 2016-12-30 23:55:19 -05:00
John Gallagher
b4777584f5 Merge pull request #193 from jgallagher/pfernie-query_row
change query_row* fns to take Row by reference instead of moving
2016-12-30 23:54:48 -05:00
John Gallagher
fbdda4ebff Merge pull request #185 from gwenn/link-to-crates.io
Add link to crates.io
2016-12-30 23:49:31 -05:00
John Gallagher
c95c3acc8e Add breaking change note about Row -> &Row in closures to Changelog 2016-12-30 23:48:24 -05:00
John Gallagher
f17fc14a59 Update query_row_named so its closure also takes a &Row instead of a Row 2016-12-30 23:48:04 -05:00
John Gallagher
3815b6beef Merge branch 'query_row' of https://github.com/pfernie/rusqlite into pfernie-query_row 2016-12-30 23:42:38 -05:00
John Gallagher
d1ad61dc41 Merge pull request #178 from gwenn/varparam-usage
Fix issue #177
2016-12-30 23:38:50 -05:00
John Gallagher
5b9f915cef Merge pull request #163 from jgallagher/safe-tosql
Redesign ToSql
2016-12-30 23:37:37 -05:00
John Gallagher
4f5abc705a Remove workaround for issue fixed in Rust 1.9. 2016-12-30 23:25:21 -05:00
John Gallagher
0d685af2d5 Merge branch 'master' into safe-tosql 2016-12-30 23:18:32 -05:00
gwenn
ffe605150a Ensure cache is flushed when closing the connection
Fix #186
2016-11-04 20:47:28 +01:00
Chip Collier
3e4f15aef7 Merge pull request #1 from chamakits/feature/bundle-update-bindgens
Regenerate bindgen based on bundled sqlite
2016-10-08 08:10:41 +02:00
Omar Ferrer
4b0d0f0d89 Deleted unneeded shell.c 2016-10-08 01:59:42 -04:00
Omar Ferrer
cf29cf8c87 Added bundled to be tested too in both remote CI 2016-10-08 01:48:38 -04:00
Omar Ferrer
70203f9ed6 Changing binding from std::os::raw back to libc 2016-10-08 01:39:57 -04:00
Omar Ferrer
5c46dbcb71 Updated README to have document the 'bundled' feature 2016-10-08 01:22:57 -04:00
Omar Ferrer
b2da510b04 Reran bindgens to match the bundled sqlite.
Added manually to the bindgens a type entry for 'Struct_sqlite3' pointing to sqlite3 to prevent changing multiple files.

Reran bindgens as:
bindgen --builtins --link=sqlite3 --output=./libsqlite3-sys/src/bindgen.rs ./libsqlite3-sys/sqlite3/sqlite3.h
2016-10-08 01:12:30 -04:00
gwenn
d1fd4a371d Add link to crates.io 2016-10-07 20:14:09 +02:00
Patrick Fernie
ece7c041e8 change query_row* fns to take Row by reference instead of moving 2016-10-07 12:42:27 -04:00
gwenn
74db4f3ffa Update doc links to docs.rs 2016-08-29 20:22:58 +02:00
gwenn
8f28ff17b8 Fix rustdoc warnings 2016-08-15 12:41:15 +02:00
gwenn
b10c52f32f Fix clippy warnings 2016-08-08 15:23:55 +02:00
gwenn
a7d27098b7 Fix issue #177 2016-07-02 10:22:47 +02:00
Chip Collier
dde6e9ee3a Added feature to build a static sqlite from the bundled amalgamation. 2016-06-15 16:34:13 +02:00
Chip Collier
a9421e2047 adding sqlite v3.13.0 amalgamation 2016-06-15 16:33:37 +02:00
John Gallagher
bf8c495b69 Merge pull request #175 from gwenn/empty-blob
Empty blob
2016-06-13 14:46:56 -04:00
gwenn
9f05147660 Fix issue jgallagher/rusqlite#174 2016-06-13 20:32:39 +02:00
gwenn
95050f10a8 Add test with empty blob (issue #174). 2016-06-13 20:22:21 +02:00
gwenn
e2cf171192 Introduce FromSqlError as specified by John Gallagher 2016-06-02 21:03:25 +02:00
John Gallagher
982499ba51 Merge pull request #173 from jgallagher/merge-0.7.3
Merge 0.7.3 changes
2016-06-01 22:12:25 -04:00
John Gallagher
58b7aea4f7 Merge branch 'release-0.7' into merge-0.7.3 2016-06-01 21:31:26 -04:00
John Gallagher
49394c8532 Merge pull request #172 from jgallagher/bugfix-insert-multiple-tables
Remove sanity check in `insert()` that could return `StatementFailedToInsertRow`.
2016-06-01 21:24:46 -04:00
John Gallagher
b235b89555 Bump to version 0.7.3. 2016-06-01 21:06:56 -04:00
John Gallagher
ad0b823560 Remove sanity check in insert() that could return StatementFailedToInsertRow.
This was intended to detect an `UPDATE` query passed to `insert`, but
incorrectly failed if inserts to different tables caused the same row ID
to be returned from both. `UPDATE`s are no longer detectable.
2016-06-01 20:52:22 -04:00
gwenn
91dc30b04d Simplify InvalidType 2016-05-30 21:20:07 +02:00
gwenn
fb19e718cf Introduce an intermediary InvalidType error.
InvalidType is used where the column/parameter index is not known.
2016-05-30 20:35:56 +02:00
John Gallagher
5941be0456 Merge pull request #170 from jgallagher/rust-1.9-reexported-trait-bugfix
Remove workaround for Rust compiler bug that was fixed in 1.9.
2016-05-30 10:02:45 -04:00
John Gallagher
d43a1abc78 Merge branch 'master' into rust-1.9-reexported-trait-bugfix 2016-05-29 23:54:47 -04:00
John Gallagher
326d8999e8 Merge pull request #169 from jgallagher/deprecated
Use new Rust 1.9 attribute: #[deprecated(since = "...", note = "...")]
2016-05-29 23:42:22 -04:00