Commit Graph

22 Commits

Author SHA1 Message Date
Steven Fackler
a9effb427a Make examples consistent 2015-11-29 20:00:25 -08:00
Steven Fackler
1aabcdbb2a Use h1s in docs 2015-11-28 21:05:13 -08:00
Steven Fackler
67bace6fc0 Rustfmt 2015-11-15 19:54:01 -08:00
Steven Fackler
78818f9fb0 Handle errors when running copy statements 2015-10-23 22:55:39 -07:00
Steven Fackler
e7d4a7e062 Drop dependency on debug builders 2015-09-18 22:55:32 -07:00
Steven Fackler
03150f4cae Overhaul the copy_out API
Returning a Reader ends up with a really weird user experience where you
have to make sure to drop it before making any other calls and it has to
internally fast forward to the end of the data even if the user drops it
early. Simply taking a Writer that all data is pushed into is
sigificantly more straightforward.
2015-09-15 23:11:14 -07:00
Steven Fackler
c21fc2966b Provide more information for copy in readers 2015-09-15 22:22:54 -07:00
Steven Fackler
20ce974662 Add session info accessor for copy out 2015-08-15 23:37:56 -07:00
Steven Fackler
6e99874bd9 Add COPY TO STDOUT support.
Closes #51
2015-08-15 23:21:39 -07:00
Steven Fackler
63e278b9f2 Pull Statement into its own module 2015-08-15 21:39:46 -07:00
Steven Fackler
587cbff836 Restructure lazy query API
It doesn't make any sense to limit lazy queries to statments *prepared*
inside a transaction. We really only care that we're in a transaction
when the statement is executed. This does introduce a new runtime error
if a statement prepared on connection A is executed on a transaction
prepared on connection B, but I don't think anyone will *ever* run into
that.
2014-03-25 21:07:42 -07:00
Steven Fackler
a773f19c20 Some cleanup 2014-03-23 17:34:50 -07:00
Steven Fackler
ec82c45cc9 Updates for API changes 2014-03-20 19:14:20 -07:00
Steven Fackler
5b646c0ca1 Some ~[] -> Vec work 2014-03-14 22:33:24 -07:00
Steven Fackler
527d7376be Remove #[inline] from a generic impl 2014-03-10 10:10:27 -07:00
Steven Fackler
3cf70fa533 Use no_run for doc tests 2014-03-10 10:06:40 -07:00
Steven Fackler
58571cab26 Add examples! 2014-03-09 15:22:20 -07:00
Steven Fackler
3760a98528 Check doc code blocks 2014-03-08 22:01:24 -08:00
Steven Fackler
42c6255412 Updates for upstream changes 2014-02-26 00:40:57 -08:00
Steven Fackler
75de360e9f Update for API changes 2014-02-21 23:18:39 -08:00
Steven Fackler
c78266b06d Lower visibility on thing 2014-02-15 19:16:12 -08:00
Steven Fackler
8831466caa Split statement and result logic out of lib.rs 2014-02-15 18:59:16 -08:00