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