Commit Graph

732 Commits

Author SHA1 Message Date
Steven Fackler
67e4a12752 Fix unwraps in chrono impls 2015-08-09 23:32:54 -04:00
Steven Fackler
d958316d2b Release v0.9.5 2015-08-03 17:15:18 -07:00
Jonathan Reem
4b545ca466 Implement ToSql for &'a T where T: ToSql
This allows more flexible use of ToSql in generic contexts by allowing
references to be used for encoding.
2015-08-03 13:32:44 -07:00
Steven Fackler
b3e596b3c8 Release v0.9.4 2015-07-30 22:44:52 -07:00
Steven Fackler
64de6abb1e Look up column names case insensitively
It tries a case sensitive comparison first so all existing uses should
continue to be OK. It should really have some form of unicode awarenes
but it's unclear exactly what. The JDBC driver uses the US locale when
lowercasing and libpq uses tolower with the system locale.

Closes #136
2015-07-30 22:04:22 -07:00
Steven Fackler
a60dc808ba Ensure Connection is always Send 2015-07-22 07:41:40 -07:00
Steven Fackler
edc6f721a5 Add docs for new impls 2015-07-20 23:16:50 -07:00
Steven Fackler
1b20a38bd9 Implement ToSql and FromSql for DateTime<{Local,FixedOffset}> 2015-07-20 23:12:13 -07:00
Steven Fackler
06b4681f16 Release v0.9.3 2015-07-04 16:04:53 -07:00
Steven Fackler
565d167724 Doc fixes 2015-07-04 16:03:53 -07:00
Steven Fackler
57d91d6b61 cleanup 2015-07-04 15:36:34 -07:00
Steven Fackler
03ee761108 Add support for binary copy in execution
Binary copy in usage needs to call into `ToSql::to_sql`, which needs a
`SessionInfo`. This defines a `Read`-like trait that also passes an
instance in. A blanket impl is provided for `R: Read` so this should be
backwards compatible.
2015-07-02 23:57:54 -07:00
Steven Fackler
525801327b Make error Display impls more descriptive
Closes #134
2015-06-29 22:56:55 -07:00
Steven Fackler
d146061f1c Release v0.9.2 2015-06-24 23:45:51 -07:00
Steven Fackler
defdaf81b6 Inline read_one_message
It's only called in one place
2015-06-22 23:47:28 -07:00
Steven Fackler
e62b4df7ed Optimize copy_in a bit
io::copy has to first copy onto the stack and then into the writer, but
we can just explicitly call read_to_end which knows it's dealing with a
Vec.
2015-06-12 00:44:51 -07:00
Steven Fackler
913678e9bf Properly return ioerrors to the caller in copy_in 2015-06-12 00:39:12 -07:00
Steven Fackler
53aafc36f6 Inline md5 impl
rust-crypto doesn't compile for all platforms, and this is the only
piece we need.
2015-06-09 19:55:28 -07:00
Steven Fackler
0883918f06 Allow direct indexing of Rows. 2015-06-07 09:15:52 -07:00
Steven Fackler
834d7c139b Move privacy trait down to others 2015-06-01 22:39:04 -07:00
Steven Fackler
60eaaad08f Remove unneeded impl 2015-06-01 21:27:18 -07:00
Steven Fackler
d69d3c4aad Fix overflow check 2015-06-01 20:54:34 -07:00
Steven Fackler
4504f9cec8 Properly detect overflow 2015-06-01 20:28:23 -07:00
Steven Fackler
6635aaf172 Doc cleanup 2015-05-31 21:48:20 -07:00
Steven Fackler
8058bd323f Make a PathBuf by value 2015-05-30 15:32:10 -07:00
Steven Fackler
ccd3c45600 Remove dead next_block_for function 2015-05-30 15:01:27 -07:00
Steven Fackler
fc0a80ed33 Release v0.9.1 2015-05-30 12:44:14 -07:00
Steven Fackler
37b36e6aa0 Implement Debug for SslMode 2015-05-30 12:42:01 -07:00
Steven Fackler
5758ccc54c Make SslMode Sync+Send 2015-05-30 12:38:42 -07:00
Steven Fackler
8e7144e21b Release v0.9.0 2015-05-29 23:22:31 -07:00
Steven Fackler
092f038288 Pull rows to their own module 2015-05-29 22:54:10 -07:00
Steven Fackler
5491a8ca10 Typo 2015-05-26 22:07:13 -07:00
Steven Fackler
f72bc4303a Hide Type constructor 2015-05-26 21:47:42 -07:00
Steven Fackler
bfe7edfdfe Remove deprecated method 2015-05-26 21:43:37 -07:00
Steven Fackler
de97f79d6f Move Slice into types 2015-05-26 21:42:34 -07:00
Steven Fackler
96d1a3af56 Drop Error::StreamDesynchronized 2015-05-25 23:27:12 -07:00
Steven Fackler
f800835456 Move error types to error module 2015-05-25 22:47:25 -07:00
Steven Fackler
417fb09b13 Un-reexport some type-related types 2015-05-25 22:09:00 -07:00
Steven Fackler
3e25dc4062 Clarify documentation 2015-05-25 20:52:06 -07:00
Steven Fackler
b75a63d384 Delete old copy in logic 2015-05-25 20:43:55 -07:00
Steven Fackler
a5c1d0ddce Don't build master docs
They aren't really all that useful.
2015-05-25 20:43:09 -07:00
Steven Fackler
9b9b82a7db Add copy_in to Statement 2015-05-25 20:40:57 -07:00
Steven Fackler
b5d9a38a59 Remove CopyInStatement
The API's awful to use.
2015-05-23 08:13:17 -07:00
Steven Fackler
e094ce66d6 Fix openssl impl 2015-05-22 21:45:51 -07:00
Steven Fackler
35197960b2 Restructure errors
WasNull and BadResponse are gone, and Conversion was added. IoError
covers the BadResponse case and Conversion is a more general version of
WasNull.
2015-05-22 21:21:30 -07:00
Steven Fackler
81fc578ca6 Move ugh_privacy stuff to normal places
Use private traits to expose constructors internally
2015-05-22 19:51:44 -07:00
Steven Fackler
0a4427e760 Fix chrono support 2015-05-21 22:55:44 -07:00
Steven Fackler
5b353aaed3 Add a SessionInfo field to ToSql and FromSql methods
Backend parameters such as timezone or server_version can be useful for
conversion methods to have access to.
2015-05-21 22:28:51 -07:00
Steven Fackler
99466da700 Update README for stable release 2015-05-17 21:04:44 -07:00
Steven Fackler
76db16eac8 Fix feature set for docs 2015-05-17 20:45:36 -07:00