John Gallagher
cd2919cce1
Merge pull request #76 from jgallagher/update-travis-infrastructure
...
Update to travis CI's container-based infrastructure
2015-11-03 11:35:31 -05:00
John Gallagher
270abfc44f
Update to travis CI's container-based infrastructure
2015-11-03 11:33:52 -05:00
John Gallagher
ad80b8fb94
Merge pull request #75 from jgallagher/rfc1214
...
RFC1214 fix
2015-11-03 11:32:38 -05:00
John Gallagher
78979c44ee
Bump version to 0.4.0
2015-11-03 11:29:02 -05:00
John Gallagher
420c4d4d9f
Address RFC 1214 warning
2015-11-03 11:27:52 -05:00
John Gallagher
3e8530a364
Merge pull request #71 from jgallagher/gwenn-reset_asap
...
Reset SQLite statement ASAP after executing.
2015-09-22 10:22:10 -07:00
John Gallagher
b41275cbc8
Update Changelog and Cargo.toml to 0.3.1
2015-09-22 10:18:26 -07:00
John Gallagher
b1350c4c14
Merge branch 'master' into gwenn-reset_asap
2015-09-22 10:16:52 -07:00
John Gallagher
c3bc8b594a
Bump version to 0.3.0.
...
Updates Changelog and CONTRIBUTORS for changes in this version.
2015-09-21 10:39:13 -04:00
John Gallagher
d23667870e
Merge pull request #70 from jgallagher/pfernie-master
...
Replace get_opt with get_checked. Add query_and_then and query_row_and_then.
2015-09-21 10:38:07 -04:00
John Gallagher
7ee69fe103
Remove get_opt (superceded by get_checked).
2015-09-21 10:31:11 -04:00
John Gallagher
1918dc14d0
Add tests for query_row_and_then().
2015-09-20 21:30:40 -04:00
John Gallagher
072a336b33
Refactor: Reduce duplication across query_and_then tests.
2015-09-20 21:28:50 -04:00
John Gallagher
0cbb2743e3
Merge branch 'master' of https://github.com/pfernie/rusqlite into pfernie-master
2015-09-20 21:07:39 -04:00
John Gallagher
59a3b0ddb5
Merge pull request #62 from gwenn/too-big
...
Check Rust str length before binding.
2015-09-20 20:57:28 -04:00
John Gallagher
69f68b1347
Merge pull request #69 from jgallagher/gwenn-debug_verbose
...
Include database path and SQL when debugging SqliteConnection and SqliteStatement
2015-09-20 20:51:17 -04:00
John Gallagher
d07c7ec8a6
Add basic unit test of statement debug including SQL
2015-09-20 20:44:51 -04:00
gwenn
05669082a3
Debug db path and stmt sql.
2015-09-20 20:41:13 -04:00
John Gallagher
43b0c1c98a
Merge branch 'reset_asap' of https://github.com/gwenn/rusqlite into gwenn-reset_asap
2015-09-20 20:30:59 -04:00
John Gallagher
36f577aea6
Merge pull request #53 from gwenn/exec_check
...
Extra check in SqliteStatement.execute
2015-09-20 20:29:12 -04:00
John Gallagher
35160383a6
Merge pull request #68 from huonw/relax
...
Relax uses of `P: AsRef<...>` from `&P` to `P`.
2015-09-20 20:22:02 -04:00
Huon Wilson
b7efb37b35
Relax uses of P: AsRef<...>
from &P
to P
.
...
This means that one can pass `AsRef` types directly, without having to
insert a `&`, e.g. `SqliteConnection::open("foo.db")` (new)
vs. `SqliteConnection::open(&"foo.db")` (old).
This should be backwards compatible, since there is an impl in the
standard library:
impl<'a, T, U> AsRef<U> for &'a T where U: ?Sized, T: AsRef<U> + ?Sized
I.e. the old `&P` satisfies the new bound still. (Taking `P` directly is
what the standard library does with similar functions, like
`File::open`.)
2015-09-08 18:11:50 +10:00
Patrick Fernie
e4eda2041e
Implement SqliteConnection::query_row_and_then()
2015-08-27 14:47:48 -04:00
Patrick Fernie
29072e585b
Implement SqliteStatement::query_and_then()
...
Allows for more ergonomic unification of error types
2015-08-27 13:43:43 -04:00
Patrick Fernie
e1532f5edf
Correct idx-checking behavior for SqliteRow::get_checked()
2015-08-27 10:44:24 -04:00
Gwenael Treguier
eb7f670ce1
Make named_params module private
2015-08-08 16:19:05 +02:00
Gwenael Treguier
59a4c5593a
Improve documentation.
2015-08-08 09:57:07 +02:00
Gwenael Treguier
6bc1a8bb59
Check when statement is too long.
2015-08-08 09:30:50 +02:00
Gwenael Treguier
3b673a74b2
Add SqliteConnection.execute_named,query_named_row.
2015-08-07 02:19:57 +02:00
Gwenael Treguier
9c63b9f37a
Check Rust blob length before binding.
2015-08-06 21:45:54 +02:00
Gwenael Treguier
7b8051dc7e
Check Rust str length before binding.
2015-08-06 21:15:30 +02:00
Gwenael Treguier
7ff9d4056b
Add SqliteStatement.named_query.
2015-08-05 22:07:49 +02:00
Gwenael Treguier
e81757e86d
Add Stmt::named_execute and Stmt::parameter_index.
2015-08-04 21:48:54 +02:00
Gwenael Treguier
8bb624cccc
Factorize code
2015-08-04 18:52:57 +02:00
Gwenael Treguier
9c415f9c9e
Remove usage of unstable library feature 'duration'
2015-08-02 12:16:01 +02:00
gwenn
ef254fdca0
Rename feature to 'trace'
2015-08-01 18:58:04 +02:00
gwenn
4a7e83f0af
Feature sqlite3_{log,trace,profile}.
2015-08-01 17:21:41 +02:00
gwenn
4fa6d3c020
Reset as soon as possible.
2015-08-01 10:18:06 +02:00
gwenn
f91db1b350
Cache column_count (I am not sure it's worth it)
2015-08-01 10:08:28 +02:00
gwenn
c31c68d5e3
Only check column count when DONE.
2015-08-01 09:11:31 +02:00
gwenn
1dc144c8c1
Add test_execute_select.
2015-08-01 08:09:59 +02:00
John Gallagher
e8967388e6
Update Changelog for 0.2.0
2015-07-26 14:00:51 -04:00
John Gallagher
8b51435837
Add new contributors
2015-07-26 13:57:26 -04:00
John Gallagher
e7eb6454d9
Merge pull request #51 from Yuhta/colnames
...
Add column_names to SqliteStatement
2015-07-26 13:55:15 -04:00
John Gallagher
17cfbd9422
Merge pull request #52 from jgallagher/gwenn-bindgen
...
Fix generated bindings
2015-07-26 13:47:16 -04:00
John Gallagher
4d1063348e
Use sqlite3_destructor_type from bindgen'd header
2015-07-26 13:43:43 -04:00
John Gallagher
8aa11687cb
Merge branch 'bindgen' of https://github.com/gwenn/rusqlite into gwenn-bindgen
2015-07-26 13:30:37 -04:00
John Gallagher
848065b922
Merge pull request #50 from gwenn/openflags
...
Make SqliteOpenFlags implement Default.
2015-07-26 13:28:35 -04:00
Jimmy Lu
22968be4fc
Add column_names to SqliteStatement
2015-07-24 22:16:20 -04:00
gwenn
fd36d98c85
Make SqliteOpenFlags implement Default.
...
Activate URI and NO_MUTEX by default.
2015-07-06 20:24:27 +02:00