diff --git a/README.md b/README.md index 36588058..1c375245 100644 --- a/README.md +++ b/README.md @@ -181,7 +181,7 @@ types. The driver currently supports the following conversions: str/String - VARCHAR, CHAR(n), TEXT, CITEXT + VARCHAR, CHAR(n), TEXT, CITEXT, NAME [u8]/Vec<u8> diff --git a/src/types/mod.rs b/src/types/mod.rs index ad72b6c8..82e40803 100644 --- a/src/types/mod.rs +++ b/src/types/mod.rs @@ -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` | BYTEA | -/// | `HashMap>` | 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` | BYTEA | +/// | `HashMap>` | 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` | BYTEA | -/// | `&[u8]` | BYTEA | -/// | `HashMap>` | 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` | BYTEA | +/// | `&[u8]` | BYTEA | +/// | `HashMap>` | HSTORE | /// /// In addition, some implementations are provided for types in third party /// crates. These are disabled by default; to opt into one of these