John Gallagher
|
e4926ac0d7
|
Rework ToSql to be implementable without unsafe .
|
2016-05-26 00:14:45 -04:00 |
|
John Gallagher
|
dccfd7e801
|
Refactor: Extract ToSql into its own module.
|
2016-05-22 20:16:54 -04:00 |
|
John Gallagher
|
71aa41c27a
|
rustfmt
|
2016-05-19 20:04:33 -05:00 |
|
John Gallagher
|
d608956bd0
|
Merge branch 'master' into remove-rows-iterator-impl
|
2016-05-19 14:06:56 -05:00 |
|
John Gallagher
|
d5bbbbd763
|
Add query_map_named and query_and_then_named to Statement.
|
2016-05-18 22:01:08 -05:00 |
|
John Gallagher
|
30733a3688
|
Modify Rows::next to tie its lifetime to the returned Row.
This means Rows no longer implements Iterator, but it is no longer
possible to misuse it by accessing a stale Row handle.
|
2016-05-18 11:41:22 -05:00 |
|
John Gallagher
|
f6aba80f4b
|
Extract RawStatement wrapper around *mut sqlite3_stmt.
|
2016-05-17 11:27:29 -05:00 |
|
John Gallagher
|
4a6c7b5329
|
Reset in Rows's drop impl instead of waiting for the next query
|
2016-05-16 14:02:39 -05:00 |
|
gwenn
|
3a52dd65f0
|
Rustfmt
|
2016-05-16 19:52:17 +02:00 |
|
gwenn
|
f529d130b9
|
Rustfmt
|
2016-02-02 19:12:00 +01:00 |
|
gwenn
|
12f26e78b3
|
Introduce RowIndex trait (like in rust-postgres)
|
2016-01-02 12:13:37 +01:00 |
|
John Gallagher
|
aac4d59fcc
|
Change Error from a struct to an enum (BREAKING CHANGE).
This allows us to separate out the underlying SQLite error codes from
errors that occur on the Rust side.
|
2015-12-16 20:30:27 -05:00 |
|
John Gallagher
|
ea5cb41bbf
|
Rename SqliteRow -> Row .
|
2015-12-12 14:11:24 -05:00 |
|
John Gallagher
|
b932640181
|
Rename SqliteRows -> Rows .
|
2015-12-12 14:09:37 -05:00 |
|
John Gallagher
|
ec654352d9
|
Rename SqliteStatement -> Statement .
|
2015-12-12 14:08:04 -05:00 |
|
John Gallagher
|
eb60bb3111
|
Rename SqliteResult -> Result .
|
2015-12-12 14:06:03 -05:00 |
|
John Gallagher
|
f0b6bf9152
|
Rename SqliteError -> Error.
|
2015-12-12 13:53:58 -05:00 |
|
John Gallagher
|
4327a84edb
|
Rename SqliteConnection -> Connection.
Leave old name in as a (deprecated) typealias.
|
2015-12-12 13:53:34 -05:00 |
|
John Gallagher
|
5fdb2e1fda
|
Allow named parameters to be omitted.
If the parameters have never been bound, they default to `NULL`. If they
have previously been bound, they keep the existing value.
|
2015-12-11 16:36:49 -05:00 |
|
John Gallagher
|
599e30f372
|
Rename bind_named_parameters -> bind_parameters_named.
|
2015-12-10 20:49:47 -05:00 |
|
John Gallagher
|
0051ff47a6
|
Refactor: Extract match to get an expected row into its own method.
|
2015-12-10 20:48:38 -05:00 |
|
John Gallagher
|
b7468b2c4b
|
Make parameter_index return a Result<Option<_>> instead of squashing
string conversion errors into None.
|
2015-12-10 20:41:31 -05:00 |
|
John Gallagher
|
186cb5893b
|
Rename query_named_row -> query_row_named.
I think this is more consistent with Rust's tendency to group similar
methods like `iter`, `iter_mut` by appending the difference as a suffix.
|
2015-12-10 20:31:07 -05:00 |
|
John Gallagher
|
8d4b3e6a31
|
Remove commented-out code
|
2015-12-10 20:30:43 -05:00 |
|
John Gallagher
|
21528452d7
|
Clean up comments on named parameter methods
|
2015-12-10 20:30:05 -05:00 |
|
John Gallagher
|
7338f23d4b
|
Add extra assertions around binding named parameters
|
2015-12-10 20:27:09 -05:00 |
|
John Gallagher
|
2f220161a5
|
Add extra check to named-parameter insertion unit test
|
2015-12-10 20:16:46 -05:00 |
|
John Gallagher
|
ab6ab3b2e9
|
Run rustfmt on named_params.rs
|
2015-12-10 17:01:19 -05:00 |
|
Gwenael Treguier
|
da69584b9f
|
Add Example and Failure documentation
|
2015-12-05 13:43:03 +01:00 |
|
Gwenael Treguier
|
ddd976c158
|
Cleanup use statements.
|
2015-11-11 14:39:54 +01:00 |
|
Gwenael Treguier
|
eb7f670ce1
|
Make named_params module private
|
2015-08-08 16:19:05 +02:00 |
|
Gwenael Treguier
|
3b673a74b2
|
Add SqliteConnection.execute_named,query_named_row.
|
2015-08-07 02:19:57 +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 |
|