Steven Fackler
a720f39b08
Update for transmute move
2014-05-11 21:20:14 -07:00
Steven Fackler
d438521684
More Vec-ifying
2014-05-09 21:15:12 -07:00
Steven Fackler
8fcdf9674b
Remove transmute_mut calls in types::array
...
There are transmute calls inside of match blocks that I don't think
should be necessary but I can't figure out how to get rid of them right
now.
2014-05-06 23:06:34 -07:00
Steven Fackler
6e0a860b9d
Pull IO stuff out to a separate module.
2014-05-04 12:21:52 -07:00
Steven Fackler
ff587b3334
Use Box instead of ~
2014-05-03 22:38:50 -07:00
James Sanders
de99157fc3
Add test for querying datname from pg_database
...
This is my use case for the "name" type.
2014-05-03 22:25:00 -06:00
James Sanders
b1e3e0e86e
Add "name" type
...
This is the type of the datname column in pg_database, which I want so
that I can get a full list of databases. I'm mimicing the text types,
which seems to work, but I'm not sure if it's really the proper way to do it.
2014-05-02 17:38:06 -06:00
Steven Fackler
c61c0c23cc
Change doc root URL
2014-04-27 23:16:59 -07:00
Steven Fackler
038639e433
Use PostgresResult in types
2014-04-26 15:07:48 -07:00
Steven Fackler
180c13dee6
Clean up string creation
2014-04-26 14:46:38 -07:00
Steven Fackler
ecea5672a7
Minor cleanup
2014-04-25 23:14:55 -07:00
Steven Fackler
ec43eb86a6
Allocate with box instead of ~
2014-04-25 21:59:44 -07:00
Steven Fackler
e1ebf3a953
Clarify SSL limitations
...
cc #36
2014-04-23 22:54:34 -07:00
Steven Fackler
9eb69c7149
Bump rust-phf version
2014-04-23 20:33:13 -07:00
Steven Fackler
36f4266738
Clean up some internal macros
2014-04-22 23:02:56 -07:00
Steven Fackler
8eca3aecb6
Remove frumious pool hack
2014-04-22 22:14:12 -07:00
Steven Fackler
47cb9b1c3e
Eliminate a few more sources of failure + refactor
2014-04-21 22:53:14 -07:00
Steven Fackler
aca87688fe
Don't decode a non-path host
...
We should let the DNS resolution system handle that part.
2014-04-21 21:43:00 -07:00
Steven Fackler
59e548623c
De ~""
2014-04-21 21:01:44 -07:00
Steven Fackler
ed1b75147e
Minor docs cleanup
2014-04-20 22:53:54 -07:00
Steven Fackler
5c866ba20b
Unify Unix and TCP connection creation
...
Not all Unix socket setups can be configured via a URL connection string
since paths need not be UTF8, so it's possible to directly pass a
`PostgresConnectParams` type into `connect`.
In addition, an SSL encrypted connection can be used via Unix sockets.
2014-04-20 22:27:55 -07:00
Steven Fackler
11193628e9
Re-pub ResultDescription fields
2014-04-20 14:38:11 -07:00
Steven Fackler
2085d01c01
Enable the connect_unix doc test
2014-04-19 11:10:27 -07:00
Steven Fackler
cc3db19974
Merge pull request #35 from zr40/add-unix-domain-socket
...
Add support for connecting through Unix sockets
2014-04-19 12:45:48 -04:00
Matthijs van der Vleuten
5e85d6b9bd
test_unix_connection now detects the socket directory.
...
Change pg_hba.conf to allow connections through the socket.
Ignore connect_unix doc test. It requires `extern crate url;` which is not allowed with rustdoc.
Also, per comments on PR #35 :
- Inline open_unix
- Centralize common code from connect and connect_unix in connect_finish.
2014-04-19 11:42:17 +02:00
Steven Fackler
3c2394fbeb
Update for ~[T] changes
2014-04-19 00:01:20 -07:00
Matthijs van der Vleuten
707e7ccfa4
Add support for connecting through Unix sockets
...
Includes connection test (assumes socket is in /tmp, the default location).
2014-04-18 23:41:39 +02:00
Steven Fackler
994c5fba7f
Remove the last remaining {:?}
2014-04-16 20:07:06 -07:00
Steven Fackler
e8f183d589
Workaround rustc bug
...
There's an assert getting tripped in the metadata encoder
2014-04-15 23:49:41 -07:00
Steven Fackler
650a03003d
Less sketchy shift
2014-04-11 19:57:09 -07:00
Steven Fackler
8516d841f1
Tweak connection pool API
2014-04-11 19:45:06 -07:00
Steven Fackler
a1acc98f5b
More cleanup
2014-04-09 21:28:50 -07:00
Steven Fackler
3c4dcf8768
Add a canary to PostgresConnection
...
This is a workaround for mozilla/rust#13246 to prevent total badness
until it gets fixed.
cc #34 , #31
2014-04-07 20:52:41 -07:00
Steven Fackler
0d70c17151
Update for IO Vec changes
2014-04-07 20:02:05 -07:00
Steven Fackler
48501cfb73
Stop failing in destructors
...
I'm not sure what the right thing to do is here, but ignoring errors is
what the standard library does.
2014-04-06 23:37:17 -07:00
Steven Fackler
8bc646272f
Merge pull request #33 from radford/get-connection-race
...
cond.signal() those in lock().cond.wait()
2014-04-05 13:39:15 -04:00
Jim Radford
5467983d08
cond.signal() those in lock().cond.wait()
2014-04-04 16:57:19 -07:00
Steven Fackler
40d5125f2c
Re-pub some fields
2014-04-02 22:56:16 -07:00
Steven Fackler
15f79973a4
Make a PostgresResult typedef
2014-04-02 21:26:41 -07:00
Steven Fackler
ec6fd52301
Fix error message
2014-04-02 09:19:38 -07:00
Steven Fackler
3181d39be8
Use more idiomatic names for row iterators
2014-04-02 00:16:21 -07:00
Steven Fackler
b2c7e08627
Fix up timespec ToSql impl
2014-04-01 19:50:26 -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
Jim Radford
28fd9e8bdb
Better errors when a column has the wrong type
2014-03-31 21:35:09 -07:00
Steven Fackler
a9ec7256a7
More cleanup
2014-03-30 19:21:51 -07:00
Steven Fackler
5157a00587
Miscellaneous cleanup
2014-03-30 16:19:04 -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
4adf743aeb
Update for upstream changes
2014-03-29 14:33:11 -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
0916a53df3
Make lazy_query result return a Result
2014-03-27 21:20:04 -07:00
Steven Fackler
78c96f23a4
Remove failing wrappers
...
Embrace the error propogation!
2014-03-27 21:08:22 -07:00
Steven Fackler
793e5e9bbf
Bump rust-phf and fix makefile
...
config.stamp isn't a thing anymore
2014-03-27 19:46:25 -07:00
Steven Fackler
2d59e5911a
Fix PostgresLazyResult docs
2014-03-25 21:50:59 -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
98c92c1dca
Update for sync changes
...
There's some scary transmuting here since PostgresConnection isn't Share
:(
2014-03-24 21:36:14 -07:00
Steven Fackler
a773f19c20
Some cleanup
2014-03-23 17:34:50 -07:00
Steven Fackler
613ceec630
Updates for upstream changes
2014-03-22 21:20:22 -07:00
Steven Fackler
ec82c45cc9
Updates for API changes
2014-03-20 19:14:20 -07:00
Steven Fackler
537203d3cb
Bump rust-phf version
2014-03-19 20:22:17 -07:00
Steven Fackler
0aec726b69
De-~[] array
2014-03-18 23:07:12 -07:00
Steven Fackler
2a822eb8c0
Use autoderef stuff for RefCell
2014-03-18 21:00:06 -07:00
Steven Fackler
01e77a06f2
Link in logging crate
2014-03-17 21:05:04 -07:00
Steven Fackler
15eb3891c5
Down with libextra!
2014-03-15 21:35:44 -07:00
Steven Fackler
c5abe8c0d7
Add ToSql impls for Vec
2014-03-14 23:01:46 -07:00
Steven Fackler
5b646c0ca1
Some ~[] -> Vec work
2014-03-14 22:33:24 -07:00
Steven Fackler
850982c0b0
Fix for upstream changes
2014-03-14 20:19:57 -07:00
Steven Fackler
9af890e7a1
Stop using private variants
2014-03-14 13:26:19 -07:00
Steven Fackler
7111d8a28b
Fix for API update
2014-03-14 08:58:01 -07:00
Steven Fackler
b0751ae424
Add Range.union
2014-03-13 00:26:51 -07:00
Steven Fackler
dc65edf2d3
More ~str pattern removal
2014-03-12 23:50:10 -07:00
Steven Fackler
1a51593306
Remove ~str pattern
2014-03-12 23:34:57 -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
8034413247
De-globbing
2014-03-09 22:01:51 -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
a8cf28d428
Stop using deriving for types with phantom params
2014-03-08 21:41:31 -08:00
Steven Fackler
2064ba86ad
Update for Ord changes
2014-03-08 20:00:10 -08:00
Steven Fackler
5bfd0207e1
Update for upstream changes
2014-03-01 20:06:04 -08:00
Steven Fackler
42c6255412
Updates for upstream changes
2014-02-26 00:40:57 -08:00
Steven Fackler
fd9b104bd4
Remove an extra to_str
2014-02-24 21:34:07 -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
6294db9500
Update for upstream changes
2014-02-22 23:02:26 -08:00
Steven Fackler
75de360e9f
Update for API changes
2014-02-21 23:18:39 -08:00
Steven Fackler
721288a024
Move docs onto macro
2014-02-20 09:19:08 -08:00
Steven Fackler
8bb601304b
Remove extra semicolon
2014-02-18 21:17:24 -08:00
Steven Fackler
20dc1046ee
Update Arc usage
2014-02-18 21:16:26 -08:00
Steven Fackler
a42b096902
Add some sanity asserts
2014-02-16 20:35:40 -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
Steven Fackler
e22a310aad
Switch to extern crate syntax
2014-02-15 15:03:35 -08:00
Steven Fackler
adec4dd5ed
Make RawFromSql less sketchy
2014-02-15 13:44:48 -08:00
Steven Fackler
20c400afff
Update for IO API chagnes
2014-02-15 12:25:04 -08:00
Steven Fackler
7c9f552eb4
Update for hex move
2014-02-13 19:26:52 -08:00
Steven Fackler
0f4e4e9c08
Sort use statements
2014-02-11 23:44:07 -08:00
Steven Fackler
d72c607b6d
Don't desync the stream on error in quick_query
2014-02-11 23:09:27 -08:00