Commit Graph

1391 Commits

Author SHA1 Message Date
Steven Fackler
487cbaf9c2 Add better size hints for notification iterators 2015-12-28 17:13:45 -07:00
Steven Fackler
0e1fa26b48 Add desync check to notifications iter 2015-12-28 17:07:18 -07:00
Steven Fackler
e9b8a75e45 Cleanup 2015-12-28 09:28:57 -07:00
Steven Fackler
2a1fa173b9 Make unreachable case more explicit 2015-12-27 21:14:04 -07:00
Steven Fackler
22f35c4aff Tweak docs 2015-12-27 17:13:36 -07:00
Steven Fackler
c34fa5ccd8 Implement Debug for SessionInfo and Display for Type 2015-12-27 13:47:32 -07:00
Steven Fackler
1188eb108a Make Kind "extensible" 2015-12-27 13:40:28 -07:00
Steven Fackler
d3a4091d4b Tweak a lifetime 2015-12-27 13:33:46 -07:00
Steven Fackler
91493f2051 Implement size_hint for BlockingIter
Unlike the other two iterators, this will never return None
2015-12-27 12:59:21 -07:00
Steven Fackler
740953aa65 Drop UFCS for set_read_timeout
The native method has been gone since 1.4.0
2015-12-27 10:18:30 -07:00
Steven Fackler
bb837bd872 Make the default notifications iterator read nonblocking
It is always super confusing as to when a notification that's been sent
to the client will actually show up in the old version of this iterator,
so it's best to have it see if there's anything waiting in the TCP
buffer.

Closes #149
2015-12-27 10:15:49 -07:00
Steven Fackler
278ee1cfd7 Drop WrongType variant
Following the tradition of WasNull
2015-12-26 22:05:23 -07:00
Steven Fackler
c87b938065 Fix features 2015-12-25 20:38:22 -07:00
Steven Fackler
f79e98e07a Rustfmt 2015-12-25 20:20:28 -07:00
Steven Fackler
4f37625cd6 Shorten error variant names
No reason to repeat Error
2015-12-25 20:14:09 -07:00
Steven Fackler
fe14c82541 Remove Error::InvalidColumn
Change get_opt to return an Option<Result<T>> as its name would hint
2015-12-25 19:32:51 -07:00
Steven Fackler
7482f6bf27 Drop net2 feature 2015-12-22 17:32:03 -07:00
Steven Fackler
258a7036e2 Switch to a whitelist for crate contents 2015-12-22 17:03:47 -07:00
Steven Fackler
02c33a6342 Remove outdated reference from readme 2015-12-22 16:43:03 -07:00
Steven Fackler
7002a93882 More build script modernization 2015-12-22 16:42:06 -07:00
Steven Fackler
4030d859bd Cleanup 2015-12-22 16:30:35 -07:00
Steven Fackler
14bec09952 Clean up read_all 2015-12-22 15:36:25 -07:00
Steven Fackler
bcd8c528a6 Tweak lifetime 2015-12-22 15:19:55 -07:00
Steven Fackler
6bada57e0f Fix doc example
Looks like recent cargo nightlies started passing features to doc tests
2015-12-20 21:48:59 -07:00
Steven Fackler
45b0d8de7e Bump security framework minimum version
Required for Debug impl
2015-12-20 20:26:39 -07:00
Steven Fackler
6a34eba6de Ignore .cargo dir 2015-12-20 20:23:08 -07:00
Steven Fackler
fc8ab87797 Cleanup 2015-12-15 23:30:50 -08:00
Steven Fackler
25b32e0ede Manually implement Debug for DbError 2015-12-14 20:36:18 -08:00
Steven Fackler
a6d9a214a6 Require Debug for StreamWrapper 2015-12-13 23:27:32 -08:00
Steven Fackler
2de8ecad6e Fix readme 2015-12-13 23:12:17 -08:00
Steven Fackler
2863b2ea0e Require Debug for NegotiateSsl
This forces the closure impl to go away but that seems not-important.
2015-12-13 22:46:24 -08:00
Steven Fackler
8fac512919 Make DbError fields public
All of them are directly exposed via accessors and the internal
representation is never realistically going to change. A single private
field allows for expansion in the future.
2015-12-12 20:30:50 -08:00
Steven Fackler
3b202e6b1e Doc fixes 2015-12-12 20:21:44 -08:00
Steven Fackler
bc04239a1d Rustfmt 2015-12-12 19:22:51 -08:00
Steven Fackler
6fea7624d3 README fix 2015-12-12 19:06:50 -08:00
Steven Fackler
9d8b009aea Wait for thread termination in cancel_query test 2015-12-06 23:39:40 -08:00
Steven Fackler
47f9a660de Make cancel_query take a ref
Even though CancelData is Copy it's a bit weird for a function to take
ownership when it doesn't need to.
2015-12-06 23:38:26 -08:00
Steven Fackler
37954d1819 Update documentation to focus on direct execution and querying
It's the common case, so make things look simpler to a newcomer.
2015-12-06 23:35:28 -08:00
Steven Fackler
685557aba2 Use Connection::query in examples 2015-12-06 23:35:28 -08:00
Steven Fackler
7ea10a151e Remove deprecated methods in tests 2015-12-06 23:35:28 -08:00
Steven Fackler
811b0ffde9 Restructure SslMode
This is a large breaking change but makes things make way more sense
2015-12-06 23:35:28 -08:00
Steven Fackler
2818b9d9ee Mention Connection::query in README 2015-12-06 23:35:28 -08:00
Steven Fackler
4d5eed832a Add query to Transaction and GenericConnection 2015-12-06 23:35:28 -08:00
Steven Fackler
a3e967a4a1 Bump unix_socket version 2015-12-06 23:35:28 -08:00
Steven Fackler
9db19d4470 Remove old serde feature 2015-12-06 23:35:28 -08:00
Steven Fackler
afc067fb33 Remove deprecated from_sql_nullable 2015-12-06 23:35:28 -08:00
Steven Fackler
736f530ae9 Add Connection::query
Same deal as Connection::execute - a bit cheaper than preparing and
executing the statement normally.
2015-12-06 23:35:28 -08:00
Steven Fackler
fcc2768434 Second half of infrastructure for Connection::query
There are weird dropck issues introduced here that require those extra
semicolons in the test code.
2015-12-06 23:35:28 -08:00
Steven Fackler
f02cf54f24 First half of infrastructure to support Connection::query 2015-12-06 23:35:28 -08:00
Steven Fackler
58bb6c0e9a Remove rows::IntoIter
It's incompatible with Connection::query
2015-12-06 23:35:28 -08:00