Mention that str is compatible with NAME

This commit is contained in:
Steven Fackler 2016-09-25 18:34:12 +02:00
parent 6b94fc2c99
commit cfa1971e18
2 changed files with 29 additions and 29 deletions

View File

@ -181,7 +181,7 @@ types. The driver currently supports the following conversions:
</tr>
<tr>
<td>str/String</td>
<td>VARCHAR, CHAR(n), TEXT, CITEXT</td>
<td>VARCHAR, CHAR(n), TEXT, CITEXT, NAME</td>
</tr>
<tr>
<td>[u8]/Vec&lt;u8&gt;</td>

View File

@ -256,19 +256,19 @@ impl WrongTypeNew for WrongType {
/// The following implementations are provided by this crate, along with the
/// corresponding Postgres types:
///
/// | Rust type | Postgres type(s) |
/// |-----------------------------------|--------------------------------|
/// | `bool` | BOOL |
/// | `i8` | "char" |
/// | `i16` | SMALLINT, SMALLSERIAL |
/// | `i32` | INT, SERIAL |
/// | `u32` | OID |
/// | `i64` | BIGINT, BIGSERIAL |
/// | `f32` | REAL |
/// | `f64` | DOUBLE PRECISION |
/// | `String` | VARCHAR, CHAR(n), TEXT, CITEXT |
/// | `Vec<u8>` | BYTEA |
/// | `HashMap<String, Option<String>>` | HSTORE |
/// | Rust type | Postgres type(s) |
/// |-----------------------------------|--------------------------------------|
/// | `bool` | BOOL |
/// | `i8` | "char" |
/// | `i16` | SMALLINT, SMALLSERIAL |
/// | `i32` | INT, SERIAL |
/// | `u32` | OID |
/// | `i64` | BIGINT, BIGSERIAL |
/// | `f32` | REAL |
/// | `f64` | DOUBLE PRECISION |
/// | `String` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
/// | `Vec<u8>` | BYTEA |
/// | `HashMap<String, Option<String>>` | HSTORE |
///
/// In addition, some implementations are provided for types in third party
/// crates. These are disabled by default; to opt into one of these
@ -462,21 +462,21 @@ pub enum IsNull {
/// The following implementations are provided by this crate, along with the
/// corresponding Postgres types:
///
/// | Rust type | Postgres type(s) |
/// |-----------------------------------|--------------------------------|
/// | `bool` | BOOL |
/// | `i8` | "char" |
/// | `i16` | SMALLINT, SMALLSERIAL |
/// | `i32` | INT, SERIAL |
/// | `u32` | OID |
/// | `i64` | BIGINT, BIGSERIAL |
/// | `f32` | REAL |
/// | `f64` | DOUBLE PRECISION |
/// | `String` | VARCHAR, CHAR(n), TEXT, CITEXT |
/// | `&str` | VARCHAR, CHAR(n), TEXT, CITEXT |
/// | `Vec<u8>` | BYTEA |
/// | `&[u8]` | BYTEA |
/// | `HashMap<String, Option<String>>` | HSTORE |
/// | Rust type | Postgres type(s) |
/// |-----------------------------------|--------------------------------------|
/// | `bool` | BOOL |
/// | `i8` | "char" |
/// | `i16` | SMALLINT, SMALLSERIAL |
/// | `i32` | INT, SERIAL |
/// | `u32` | OID |
/// | `i64` | BIGINT, BIGSERIAL |
/// | `f32` | REAL |
/// | `f64` | DOUBLE PRECISION |
/// | `String` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
/// | `&str` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
/// | `Vec<u8>` | BYTEA |
/// | `&[u8]` | BYTEA |
/// | `HashMap<String, Option<String>>` | HSTORE |
///
/// In addition, some implementations are provided for types in third party
/// crates. These are disabled by default; to opt into one of these