Steven Fackler
1188eb108a
Make Kind "extensible"
2015-12-27 13:40:28 -07:00
Steven Fackler
278ee1cfd7
Drop WrongType variant
...
Following the tradition of WasNull
2015-12-26 22:05:23 -07:00
Steven Fackler
9db19d4470
Remove old serde feature
2015-12-06 23:35:28 -08:00
Steven Fackler
afc067fb33
Remove deprecated from_sql_nullable
2015-12-06 23:35:28 -08:00
Steven Fackler
d77577eaaa
Support BIT/VARBIT to BitVec
...
Closes #148
2015-12-06 12:40:12 -08:00
Steven Fackler
4bdbcd8265
Impl NegotiateSsl for closures + rustfmt
2015-12-05 14:44:40 -08:00
Steven Fackler
67bace6fc0
Rustfmt
2015-11-15 19:54:01 -08:00
Steven Fackler
25b9614027
Make doc comments real comments
2015-11-14 11:39:05 -08:00
Steven Fackler
75ad0886b5
No need for *full* ufcs since we're passing self
2015-11-12 21:18:10 -08:00
Steven Fackler
6e3deb97f9
Use full UFCS in to_sql_checked macro
...
Make sure we don't accidentally call an inherent to_sql method
2015-11-12 21:17:06 -08:00
Steven Fackler
d286d0a610
Remove old workarounds
2015-11-12 20:55:29 -08:00
Steven Fackler
5b889068da
Remove some random whitespace
2015-11-12 20:52:31 -08:00
Steven Fackler
65b3234626
Add back in serde 0.3 support for back compat
...
This is a bit of a dubious hack since anyone that tries to turn on both
serde and serde_json are screwed.
2015-11-07 16:36:18 -08:00
Steven Fackler
d3182d96a6
Update serde support
2015-11-07 16:32:16 -08:00
Steven Fackler
5d047683f0
Redo FromSql
...
Still use from_sql_nullable internally to preserve back compat, but
implementation should use from_sql_null instead
2015-10-24 19:24:00 -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
7e397a86c7
Doc cleanup
2015-09-26 22:59:40 -07:00
Steven Fackler
178744a97e
Add a schema accessor on Type
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
5fe76e2dec
Remove unused import
2015-09-15 22:22:54 -07:00
Steven Fackler
c21fc2966b
Provide more information for copy in readers
2015-09-15 22:22:54 -07:00
Steven Fackler
369961a416
Doc typo fixes
2015-08-10 13:49:33 -04:00
Jonathan Reem
4b545ca466
Implement ToSql for &'a T where T: ToSql
...
This allows more flexible use of ToSql in generic contexts by allowing
references to be used for encoding.
2015-08-03 13:32:44 -07:00
Steven Fackler
edc6f721a5
Add docs for new impls
2015-07-20 23:16:50 -07:00
Steven Fackler
03ee761108
Add support for binary copy in execution
...
Binary copy in usage needs to call into `ToSql::to_sql`, which needs a
`SessionInfo`. This defines a `Read`-like trait that also passes an
instance in. A blanket impl is provided for `R: Read` so this should be
backwards compatible.
2015-07-02 23:57:54 -07:00
Steven Fackler
4504f9cec8
Properly detect overflow
2015-06-01 20:28:23 -07:00
Steven Fackler
f72bc4303a
Hide Type constructor
2015-05-26 21:47:42 -07:00
Steven Fackler
bfe7edfdfe
Remove deprecated method
2015-05-26 21:43:37 -07:00
Steven Fackler
de97f79d6f
Move Slice into types
2015-05-26 21:42:34 -07:00
Steven Fackler
f800835456
Move error types to error module
2015-05-25 22:47:25 -07:00
Steven Fackler
35197960b2
Restructure errors
...
WasNull and BadResponse are gone, and Conversion was added. IoError
covers the BadResponse case and Conversion is a more general version of
WasNull.
2015-05-22 21:21:30 -07:00
Steven Fackler
81fc578ca6
Move ugh_privacy stuff to normal places
...
Use private traits to expose constructors internally
2015-05-22 19:51:44 -07:00
Steven Fackler
5b353aaed3
Add a SessionInfo field to ToSql and FromSql methods
...
Backend parameters such as timezone or server_version can be useful for
conversion methods to have access to.
2015-05-21 22:28:51 -07:00
Steven Fackler
76db16eac8
Fix feature set for docs
2015-05-17 20:45:36 -07:00
Steven Fackler
d651927005
Capitalize Cargo
2015-05-17 20:34:49 -07:00
Steven Fackler
edb990d20f
Document type support on ToSql and FromSql
...
This also lets us turn back on all of the features in doc builds
2015-05-17 20:27:39 -07:00
Steven Fackler
0d63eeba50
Add optional chrono support
2015-05-13 22:25:43 -07:00
Steven Fackler
16424dd267
Random cleanup
2015-05-02 15:55:53 -07:00
Steven Fackler
62459f6944
Support serde's JSON type
2015-04-12 21:48:38 -07:00
Steven Fackler
2bf9b09af9
Hack around rust-lang/rust#24308
...
Closes #111
2015-04-12 11:10:02 -07:00
Steven Fackler
4b877e0a33
Cleanup
2015-04-07 23:57:22 -07:00
Steven Fackler
01862817c9
Add Debug bound on ToSql and log params during stmt execution
2015-03-30 23:24:45 -07:00
Steven Fackler
e4b0143de9
Restore implicit prelude use
2015-03-22 11:11:22 -07:00
Steven Fackler
3a0e10e5c7
Fix build issues
...
Also remove the impls for CIDR/INET. No ipv4/ipv6 agnostic type exists
anymore in the standard library, and the old one didn't cover netmasks
anyway.
2015-03-18 20:49:14 -07:00
Steven Fackler
f5b0378237
Document macros
2015-03-03 20:44:47 -08:00
Steven Fackler
a42e8a8139
Fix to_sql_checked!
2015-02-27 20:46:43 -08:00
Steven Fackler
dac4c4f4f1
Port to new IO
2015-02-27 20:03:25 -08:00
Steven Fackler
df4d5d8417
Clarify docs a bit.
2015-02-24 21:39:29 -08:00
Steven Fackler
1767661618
Redesign ToSql and remove RawToSql
2015-02-24 21:39:29 -08:00
Steven Fackler
f63bdcc86d
Fix doc string
2015-02-22 22:13:59 -08:00