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
Steven Fackler
ab47ecb917
Rename ByteA for consistency
2015-02-22 22:13:59 -08:00
Steven Fackler
c30bfed857
Fill out remaining postgres types
2015-02-22 22:13:59 -08:00
Steven Fackler
89f00b38e4
Return references from Type::kind
2015-02-22 22:13:59 -08:00
Steven Fackler
fdc41dd72b
Fix alignment
2015-02-22 22:13:59 -08:00
Steven Fackler
5f8a0b97aa
Overhaul FromSql
...
We can now have a blanket impl for Option and remove RawFromSql
2015-02-22 22:13:59 -08:00
Steven Fackler
ef0e15b34d
Change element_type to kind
2015-02-22 22:13:59 -08:00
Steven Fackler
6abcf0e7a7
Remove Error::BadData
2015-02-22 22:13:59 -08:00
Steven Fackler
5ec039bd5d
Make time impls opt-in
2015-02-22 22:13:59 -08:00
Steven Fackler
b352b12c48
Make JSON support an optional feature
...
Even though we currently depend on rustc-serialize, this may not always
be the case. Forcing opt-in for all integration with external crates is
a safer course of action.
2015-02-22 22:13:59 -08:00
Steven Fackler
a0cca5fa77
Add a Slice adapter type
...
Until impl specialization exists, we can't define this implementaion
directly on &[T] because of the existing implementation for &[u8].
Closes #92
2015-02-12 22:52:55 -08:00
Steven Fackler
599a84ac91
Shuffle unknown type boxing a bit
2015-02-06 09:03:49 -08:00
Steven Fackler
cae12218ab
Encapsulate information about unknown types
2015-02-06 09:03:49 -08:00
Steven Fackler
f702cc03c2
Fix for closure changes
2015-02-06 08:56:23 -08:00
Steven Fackler
8d704f71ce
Fix for IO changes
2015-01-28 08:52:33 -08:00
Steven Fackler
309b7b09cd
Doc fix
2015-01-25 17:31:25 -08:00
Steven Fackler
6381267267
Fix for upstream changes
2015-01-23 10:44:15 -08:00
Steven Fackler
b30bd46c2b
Set element_type for range types
...
Closes #95
2015-01-22 00:04:58 -08:00