Commit Graph

840 Commits

Author SHA1 Message Date
Andrew Baumhauer
ac13bb5300 Add support for MACADDR type using eui48 crate. Create feature eui48. 2016-02-14 01:36:16 +00:00
Steven Fackler
32efe3080c Fix doc 2016-02-01 23:32:01 +00:00
Steven Fackler
c677386952 Release v0.11.1 2016-02-01 22:49:29 +00:00
Steven Fackler
be18d8ad90 Rustfmt 2016-01-22 21:22:05 -08:00
Steven Fackler
bd67e438c4 Add a Domain Kind
This could break downstream code that expects a domain type to
explicitly be a Simple Kind, but I doubt that exists.

cc #153
2016-01-22 20:01:39 -08:00
Steven Fackler
05da5ffc97 Release v0.11.0 2016-01-03 14:40:05 -08:00
Steven Fackler
59b9d66890 Doc tweaks 2016-01-02 21:51:02 -08:00
Steven Fackler
a4f0c3bc5f Don't clone cached statement info 2016-01-02 21:02:54 -08:00
Steven Fackler
54735d9f4f Arcify unknown types 2016-01-02 20:07:33 -08:00
Steven Fackler
277e2b6a48 Disable rustfmt on a line we don't want changed 2016-01-02 16:18:48 -08:00
Steven Fackler
278a03ac83 Rustfmt 2016-01-02 16:02:34 -08:00
Steven Fackler
3ddcf87203 Simplify ConnectError
Same deal as Error
2016-01-02 15:50:11 -08:00
Steven Fackler
ccfba62b99 More cleanup 2015-12-29 15:16:15 -07:00
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
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
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
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
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
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
4d5eed832a Add query to Transaction and GenericConnection 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