Steven Fackler
a4fe4e2056
Flatten and rename error stuff
2014-11-03 22:24:11 -08:00
Steven Fackler
ad82d28d18
Demangle PostgresType
2014-11-03 21:31:08 -08:00
Steven Fackler
cea15783a5
PostgresResult -> Result
2014-11-01 16:12:05 -07:00
Steven Fackler
4f6afa127a
Update for PHF changes
2014-11-01 14:43:31 -07:00
Steven Fackler
75a938a322
Update for DST changes
2014-11-01 13:52:14 -07:00
Steven Fackler
a151a5ba02
Update for rust changes
2014-10-31 08:51:27 -07:00
Steven Fackler
511de7673f
Remove unnecessary line breaks
2014-10-18 11:31:14 -07:00
Steven Fackler
33716f4901
Remove last unwrap call from PostgresDbError::new
2014-10-18 11:25:05 -07:00
Steven Fackler
86bf3b719b
Switch some .to_string to .into_string
2014-10-18 11:17:12 -07:00
Steven Fackler
e5ed2ba96e
Use new slice syntax
2014-10-04 20:08:44 -07:00
Steven Fackler
a64ca5f955
Remove failure from PostgresDbError::new
...
Closes #43
2014-09-30 22:52:27 -07:00
Steven Fackler
d381269773
Fix errors from variant type namespace thing
2014-09-22 00:21:16 -07:00
Steven Fackler
c8cc3799be
Fix deprecation warnings
2014-09-17 22:57:23 -07:00
Steven Fackler
d0c1d71529
Get out of the way of the where keyword
...
Closes #52
2014-08-17 00:42:02 -07:00
Steven Fackler
ab59eac6fc
Derive things for errors
2014-08-10 13:08:44 -07:00
Steven Fackler
d374641ecb
Remove some indirection from files
2014-08-02 19:10:45 -07:00
Steven Fackler
42123f7765
Extract tests to a separate crate
...
This ensures that we're only testing public API and speeds up the
development process.
2014-06-30 21:30:39 -07:00
Mike Dilger
7622a1d395
Show trait for SQLSTATEs:
...
Useful for, if nothing else, debugging to determine which
SQLSTATE occurred w/o comparing against a hundred or so possible
states, nor loosely interpreting the message.
2014-06-21 10:13:48 +12:00
Steven Fackler
aa457cb5be
to_string -> to_str
2014-06-05 23:32:49 -07:00
Steven Fackler
216f15d33d
Update for collections changes
2014-06-05 20:50:23 -07:00
Steven Fackler
01d8352773
De-Total
2014-06-01 19:57:27 -07:00
Steven Fackler
2a0f92a411
Update for cmp changes
2014-05-31 10:11:18 -07:00
Steven Fackler
e6b45ed291
Update for upstream changes
2014-05-28 21:54:02 -07:00
Steven Fackler
d2cd820f71
StrBuf -> String
2014-05-25 20:38:40 -07:00
Steven Fackler
584226bd23
Stop using to_strbuf
2014-05-24 20:42:07 -07:00
Steven Fackler
ec7dd96a30
Disallow use of wrong transactions
...
We don't want to allow statements to outlive the active transaction in
which they were prepared.
2014-05-18 19:34:01 -07:00
Steven Fackler
3a01ffba83
Upgrade for upstream changes
2014-05-16 18:24:31 -07:00
Steven Fackler
1909bd46b4
Update for upstream StrBuf changes
2014-05-15 19:11:23 -07:00
Steven Fackler
7f318f2865
Update for upstream changes
2014-05-13 19:27:26 -07:00
Steven Fackler
d1c412b393
More ~str -> StrBuf
2014-05-12 22:05:37 -07:00
Steven Fackler
6e0a860b9d
Pull IO stuff out to a separate module.
2014-05-04 12:21:52 -07:00
Steven Fackler
3e5a48dfb6
Update for privacy overhaul
...
The ToSql impl for Timespec is broken as some fields became accidentally
private
2014-04-01 00:32:10 -07:00
Steven Fackler
a9ec7256a7
More cleanup
2014-03-30 19:21:51 -07:00
Steven Fackler
99e759b5a9
Custom Show impls for errors
2014-03-29 20:04:37 -07:00
Steven Fackler
b930bc36f9
Remove yet more failure
2014-03-29 19:01:23 -07:00
Steven Fackler
9ff7b3d00a
Remove mandatory failure from row lookup
2014-03-29 17:01:41 -07:00
Steven Fackler
61f9f43cf3
Stop failing on wrong types
2014-03-27 22:43:10 -07:00
Steven Fackler
76ff679f9a
Don't fail on wrong param count
2014-03-27 21:39:03 -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
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
42c6255412
Updates for upstream changes
2014-02-26 00:40:57 -08:00
Steven Fackler
0d78856938
Update for ToStr removal
2014-02-24 21:08:40 -08:00
Steven Fackler
9b81b556a1
Update for hashmap move
2014-02-23 22:32:14 -08:00
Steven Fackler
dec566e683
Track stream desynchronization
...
If we hit an IO error talking to the server, message framing has
probably been lost and we shouldn't try to keep talking.
2014-02-09 22:45:26 -08:00
Steven Fackler
b15716cf4e
Up debugging and add doc string
2014-02-08 11:25:24 -08:00
Steven Fackler
fdd1f4f88d
Beginnings of fixes for IO API changes
...
It is still very much incorrect in the face of errors, but it's better
2014-02-06 20:58:47 -08:00
Steven Fackler
d6aa529474
Move source files to src directory
...
The root was getting too crowded.
2014-02-02 23:28:59 -05:00
Steven Fackler
88bb03119a
Restructure to support rustpkg
2013-09-28 20:30:35 -07:00
Steven Fackler
65aabf5147
Sketches of a connection pool
2013-09-16 23:03:13 -07:00