Commit Graph

84 Commits

Author SHA1 Message Date
Steven Fackler
5696a15cb6 Cleanup 2014-12-18 09:07:15 -08:00
Steven Fackler
02fdb06762 Support citext and oid types
This ended up involving some pretty major refactors and fixed a bug
where passing extension types as parameters to `execute` broke.

Closes #56
2014-12-14 16:46:22 -08:00
Steven Fackler
0562063596 Generically derive RawFromSql for Range<T> 2014-12-14 15:07:48 -08:00
Steven Fackler
d349715061 Support CIDR as well 2014-12-14 12:27:02 -08:00
Steven Fackler
00d0f9e701 Add a bounds check in IpAddr RawFromSql impl 2014-12-14 11:50:14 -08:00
Steven Fackler
afc4b09557 Remove allocation in FromSql for IpAddr 2014-12-14 11:43:48 -08:00
Steven Fackler
3ac26d4961 Add inet support
It's lossy ATM, since IpAddr doesn't store the netmask.

Closes #88
2014-12-14 11:39:26 -08:00
Steven Fackler
cdbbadd3cf Clean up some equality checks 2014-12-06 13:30:37 -08:00
Steven Fackler
705f9f9d79 Remove a bunch of slice sugar usage 2014-12-02 21:44:34 -08:00
Steven Fackler
d5998d8f2a Add Notifications::next_block_for method
The setup is a little hairy, but seems correct.

cc #19
2014-12-02 20:36:31 -08:00
Steven Fackler
814c48863c More duplication reduction 2014-11-24 22:42:49 -08:00
Steven Fackler
a793bcc1d5 Reduce some duplication in range logic 2014-11-24 22:24:34 -08:00
Steven Fackler
d92eafce4b Remove some more failure 2014-11-24 10:12:35 -08:00
Steven Fackler
a46c524200 Finish variant naming convention transition 2014-11-20 21:47:13 -08:00
Steven Fackler
1fa5941562 Use Vec instead of MemWriter 2014-11-19 20:54:32 -08:00
Kyle Dewey
57ce8f7167 Added imports for members of enums, as per https://github.com/rust-lang/rust/pull/18973 2014-11-18 00:45:55 -08:00
Steven Fackler
4811d0d719 Remove some uneccessary macro_escapes 2014-11-17 20:54:19 -08:00
Steven Fackler
66dcc87e0d Prepare for namespacing changes 2014-11-17 20:47:54 -08:00
Steven Fackler
9a87c6e18a Make time support optional 2014-11-17 19:11:32 -08:00
Steven Fackler
c1e4f6385f Make uuid default on and rename it 2014-11-17 09:43:10 -08:00
Steven Fackler
6ba926d016 Fix build errors 2014-11-17 08:56:25 -08:00
Steven Fackler
89f9960fe7 Use FromError 2014-11-16 22:54:57 -08:00
Steven Fackler
b81acaab4c Add impl docs for optional impls 2014-11-06 08:32:05 -08:00
Steven Fackler
4f80c32967 Add optional UUID support
Closes #72
2014-11-06 07:56:00 -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
a151a5ba02 Update for rust changes 2014-10-31 08:51:27 -07:00
Steven Fackler
4751787939 Clean up some warnings 2014-10-25 20:54:27 -07:00
Steven Fackler
6484836b68 Revert "DSTify ToSql"
This causes ICEs

This reverts commit c63a7f9a15.
2014-10-25 20:24:08 -07:00
Steven Fackler
c63a7f9a15 DSTify ToSql 2014-10-25 10:19:49 -07:00
Steven Fackler
86bf3b719b Switch some .to_string to .into_string 2014-10-18 11:17:12 -07:00
Steven Fackler
abd60ef1cf static -> const 2014-10-09 21:50:40 -07:00
Steven Fackler
e5ed2ba96e Use new slice syntax 2014-10-04 20:08:44 -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
5410363f49 Fix deprecations 2014-09-24 00:18:27 -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
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
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
97efc52a3b Formatting cleanup 2014-08-14 23:05:11 -07:00
Steven Fackler
455dea3bd0 Force all result formats to binary 2014-08-14 20:22:12 -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
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