Commit Graph

783 Commits

Author SHA1 Message Date
Steven Fackler
e5ed2ba96e Use new slice syntax 2014-10-04 20:08:44 -07:00
Steven Fackler
dd4052210f Improve error handling in COPY 2014-10-01 14:40:43 -07:00
Steven Fackler
51ace9081a Don't fuse row iterator 2014-09-30 23:54:11 -07:00
Steven Fackler
a64ca5f955 Remove failure from PostgresDbError::new
Closes #43
2014-09-30 22:52:27 -07:00
Steven Fackler
5561e7baca Add column_types to copy in statement 2014-09-30 00:15:17 -07:00
Steven Fackler
0c3f3b1e83 More docs + return copy count from execute 2014-09-30 00:11:23 -07:00
Steven Fackler
91a90f0d1c Remove some unused methods 2014-09-30 00:02:54 -07:00
Steven Fackler
a85d50805d Add some prepare_copy_in docs 2014-09-30 00:01:15 -07:00
Steven Fackler
4863433ca7 Add prepare_copy_in to transaction 2014-09-29 23:49:58 -07:00
Steven Fackler
011d531b1d Remove Binary/Text choice from ToSql
Text format doesn't work with our COPY implementation, and FromSql is
already binary only.
2014-09-29 23:41:13 -07:00
Steven Fackler
249db6b55a Correctly handle bad column counts in copy 2014-09-29 23:32:57 -07:00
Steven Fackler
f88f908498 Don't flush more than needed when copying 2014-09-29 23:09:39 -07:00
Steven Fackler
2e61f1316f Initial COPY FROM support!
cc #51
2014-09-29 22:56:43 -07:00
Steven Fackler
a4a625a30c Detect direct queries to COPY FROM 2014-09-29 21:05:42 -07:00
Steven Fackler
945714b692 Merge pull request #61 from mikedilger/fix_double_borrow
Fix double borrow of conn RefCell<T>
2014-09-29 20:55:47 -04:00
Mike "Wizard" Dilger
ed3bcda729 Fix double borrow of conn RefCell<T> 2014-09-30 13:46:21 +13:00
Steven Fackler
58da48c9c2 Fix range! docs 2014-09-28 15:19:52 -07:00
Steven Fackler
18e1240601 Work around rust-lang/rust#17594 2014-09-27 13:55:47 -07:00
Steven Fackler
8ca22813c9 Clean up Show impl a bit 2014-09-24 23:32:46 -07:00
Steven Fackler
2fbbaacb31 Fix compilation 2014-09-24 23:23:05 -07:00
Steven Fackler
5410363f49 Fix deprecations 2014-09-24 00:18:27 -07:00
Steven Fackler
d381269773 Fix errors from variant type namespace thing 2014-09-22 00:21:16 -07:00
Steven Fackler
45e95f5f00 Merge pull request #57 from radford/unix-stream-now-pipe
UnixStream moved from std::io::next::unix to std::io::net::pipe
2014-09-19 10:41:53 -07:00
Jim Radford
b8e93ab65e UnixStream moved from std::io::next::unix to std::io::net::pipe 2014-09-18 20:21:37 -07:00
Steven Fackler
c8cc3799be Fix deprecation warnings 2014-09-17 22:57:23 -07:00
Steven Fackler
0c1dccfd52 Remove unneeded crate_name attribute 2014-09-14 19:27:15 -07:00
Steven Fackler
61992878f1 Cleanup in types::range 2014-09-13 22:54:40 -07:00
Steven Fackler
e0d868294b Remove licenses for cargo'd dependencies 2014-09-13 22:03:01 -07:00
Steven Fackler
0bfb7cfd4e Remove old gitmodules file 2014-09-13 22:02:15 -07:00
Steven Fackler
d9b7d3c4d2 Remove some failure
Avoid reborrowing a RefCell over and over since it'll bloat at least the
IR and maybe the resulting binary with failure cruft.
2014-09-12 22:07:10 -07:00
Steven Fackler
c40fc64197 Reenable types::array
We really shouldn't need the 'static bound on T, but that can be fixed
another day.
2014-09-11 21:40:52 -07:00
Steven Fackler
e362feb85b Suppress warnings 2014-09-11 21:35:10 -07:00
Steven Fackler
9a7e5b7c7d Misc cleanup 2014-09-06 16:33:43 -07:00
Steven Fackler
e930dd8105 Fix up for openssl changes 2014-09-05 21:57:08 -07:00
Steven Fackler
3b422889d9 Merge pull request #55 from alexcrichton/no-locked-rev
Remove locked revisions from the Cargo.toml
2014-09-03 09:59:51 -07:00
Alex Crichton
35a0a09cd2 Remove locked revisions from the Cargo.toml
Locked revisions inside of a manifest generally indicate that a library is only
compatible with exactly one revision of the dependent library. In general these
locked revisions belong in a Cargo.lock instead of a Cargo.toml.

By including a locked revision, the dependency graph is forked such that
postgres will have its own copy of all of its dependencies, while all other
users of, for example, rust-openssl will get a different copy (the sources are
different).

This package is in general compatible with the current master branch of its
dependencies, and applications will have locked versions of all these
dependencies regardless.
2014-09-03 08:20:39 -07:00
Steven Fackler
3a745746bc Remove explicit casts from tests 2014-08-31 23:09:53 +01:00
Steven Fackler
fa34efba8f Change docs to work around coercion issue 2014-08-30 10:57:46 +01:00
Steven Fackler
7a84a16b41 Get things building again
I'm temporarily diabling arrays until I have a chance to look over and
make sure the API is sound.

This also works around a trait object coercion regression:
rust-lang/rust#16861
2014-08-30 10:25:38 +01:00
Steven Fackler
bf2497bf48 Bump rust-phf 2014-08-30 10:25:32 +01:00
Steven Fackler
fccbbdc1d0 Bump rust-openssl 2014-08-29 23:23:23 +01:00
Steven Fackler
46703ee970 Use builtin rust support on travis 2014-08-23 16:03:56 -07:00
Steven Fackler
364c213383 Add back crate_name for rustdoc 2014-08-23 09:17:58 -07:00
Steven Fackler
9d44bb8c7e Fix doc typo 2014-08-20 22:40:11 -07:00
Steven Fackler
b8539003c3 Improve examples a bit 2014-08-19 21:49:27 -07:00
Steven Fackler
699a3f1acc Bump dependencies 2014-08-18 22:03:10 -07:00
Steven Fackler
30a3210be0 Revert "Strip prefixes from types"
This reverts commit ccdb02f661.

I'm not sure this is the right way to go just yet
2014-08-18 22:02:16 -07:00
Steven Fackler
ccdb02f661 Strip prefixes from types
They can be prefixed with the crate name
2014-08-18 21:52:56 -07:00
Steven Fackler
44da9d9e1e Start using where clauses 2014-08-17 13:57:58 -07:00
Steven Fackler
d0c1d71529 Get out of the way of the where keyword
Closes #52
2014-08-17 00:42:02 -07:00