Steven Fackler
f2cf6be6bc
Rename all features
...
You can't add dependencies to implicit features, so move them all just
in case.
2016-09-10 10:31:21 -07:00
Steven Fackler
c3aed4457f
Remove deprecated set_transaction_isolation
2016-09-10 10:30:47 -07:00
Steven Fackler
2a6889fa0b
Rename SslMode to TlsMode
...
TLS has been a thing since 1999 - time to use it rather than SSL!
2016-09-10 10:30:47 -07:00
Steven Fackler
2e25862a66
Rename ssl stuff
2016-09-10 10:30:47 -07:00
Steven Fackler
1627d62878
Overhaul security framework integration
2016-09-10 10:30:47 -07:00
Steven Fackler
da7407f543
Add a more robust wrapper for OpenSSL support
2016-09-10 10:30:47 -07:00
Steven Fackler
7e48593a54
Check domain for openssl wrapper
...
Also update the expired certs we were using.
2016-09-10 10:30:47 -07:00
Steven Fackler
4373eff16f
Remove back compat reexport
2016-09-10 10:30:47 -07:00
Steven Fackler
46113ac323
Fix transaction config query generation
...
Closes #187
2016-06-15 18:29:36 -07:00
Steven Fackler
616b725763
Merge pull request #184 from nvanbenschoten/nvanbenschoten/savepoints
...
Add savepoint method to Transaction
2016-05-26 21:20:48 -07:00
Nathan VanBenschoten
cf3ead046e
Add savepoint method to Transaction
...
This change creates a `Transaction.savepoint` method, which is equivalent
to `Transaction.transaction`, but takes a custom name for the nested
transaction's savepoint name.
2016-05-25 17:17:36 -04:00
Joshua Miller
0c54f01a0e
Handle malformed percent-encoding
...
Closes #182
2016-05-18 20:33:12 -05:00
Corey Farwell
805a584f5c
Bump rust-url to 1.0.
2016-04-25 12:39:55 -04:00
Steven Fackler
d48fa83c19
Only enable unix socket stuff on unix with nightly
2016-03-29 21:24:45 -07:00
Steven Fackler
b0bed6ab4c
Add a nightly feature
...
Currently uses the UnixStream from the standard library
2016-03-27 13:03:19 -07:00
Steven Fackler
6e4afdb377
Use pg_temp instead of a transaction for test
2016-03-05 12:49:00 -08:00
Steven Fackler
5b80b251a6
Finish up transaction config
2016-02-24 22:29:09 -08:00
Steven Fackler
bd67e438c4
Add a Domain Kind
...
This could break downstream code that expects a domain type to
explicitly be a Simple Kind, but I doubt that exists.
cc #153
2016-01-22 20:01:39 -08:00
Steven Fackler
3ddcf87203
Simplify ConnectError
...
Same deal as Error
2016-01-02 15:50:11 -08:00
Steven Fackler
bb837bd872
Make the default notifications iterator read nonblocking
...
It is always super confusing as to when a notification that's been sent
to the client will actually show up in the old version of this iterator,
so it's best to have it see if there's anything waiting in the TCP
buffer.
Closes #149
2015-12-27 10:15:49 -07:00
Steven Fackler
278ee1cfd7
Drop WrongType variant
...
Following the tradition of WasNull
2015-12-26 22:05:23 -07:00
Steven Fackler
4f37625cd6
Shorten error variant names
...
No reason to repeat Error
2015-12-25 20:14:09 -07:00
Steven Fackler
fe14c82541
Remove Error::InvalidColumn
...
Change get_opt to return an Option<Result<T>> as its name would hint
2015-12-25 19:32:51 -07:00
Steven Fackler
8fac512919
Make DbError fields public
...
All of them are directly exposed via accessors and the internal
representation is never realistically going to change. A single private
field allows for expansion in the future.
2015-12-12 20:30:50 -08:00
Steven Fackler
9d8b009aea
Wait for thread termination in cancel_query test
2015-12-06 23:39:40 -08:00
Steven Fackler
47f9a660de
Make cancel_query take a ref
...
Even though CancelData is Copy it's a bit weird for a function to take
ownership when it doesn't need to.
2015-12-06 23:38:26 -08:00
Steven Fackler
7ea10a151e
Remove deprecated methods in tests
2015-12-06 23:35:28 -08:00
Steven Fackler
811b0ffde9
Restructure SslMode
...
This is a large breaking change but makes things make way more sense
2015-12-06 23:35:28 -08:00
Steven Fackler
736f530ae9
Add Connection::query
...
Same deal as Connection::execute - a bit cheaper than preparing and
executing the statement normally.
2015-12-06 23:35:28 -08:00
Steven Fackler
fcc2768434
Second half of infrastructure for Connection::query
...
There are weird dropck issues introduced here that require those extra
semicolons in the test code.
2015-12-06 23:35:28 -08:00
Steven Fackler
58bb6c0e9a
Remove rows::IntoIter
...
It's incompatible with Connection::query
2015-12-06 23:35:28 -08:00
Steven Fackler
0e6b03d06b
Use a smaller crate for hex stuff
...
It's really overkill to pull in rustc_serialize just for hex conversions
2015-12-06 14:28:12 -08:00
Steven Fackler
a217c5cd00
NegotiateSsl implementation for security_framework
2015-12-05 14:35:17 -08:00
Steven Fackler
78818f9fb0
Handle errors when running copy statements
2015-10-23 22:55:39 -07:00
Steven Fackler
01153f784a
Add a notifications iterator that waits with a timeout
...
Closes #105
2015-10-20 23:13:45 -07:00
Steven Fackler
8b80eba9ed
Add a name accessor to Type
...
Also fix up some misentered type info and add a test to ensure it's
correct.
2015-09-26 22:59:40 -07:00
Steven Fackler
f551a86c0f
Expose containing schema for custom types
2015-09-26 22:59:40 -07:00
Steven Fackler
a2609f6c90
Refactor notification API
2015-09-18 22:51:11 -07:00
Steven Fackler
008f14b459
Move notification stuff to its own module
2015-09-18 20:55:01 -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
6e99874bd9
Add COPY TO STDOUT support.
...
Closes #51
2015-08-15 23:21:39 -07:00
Steven Fackler
dc2f04de96
Start work on COPY TO statements
2015-08-15 20:39:13 -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
913678e9bf
Properly return ioerrors to the caller in copy_in
2015-06-12 00:39:12 -07:00
Steven Fackler
0883918f06
Allow direct indexing of Rows
.
2015-06-07 09:15:52 -07:00
Mark Lee
bbebf83749
Fix typos in tests' panic messages
2015-06-03 22:04:15 -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
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