Skip to content

Commit cfa1971

Browse files
committed
Mention that str is compatible with NAME
1 parent 6b94fc2 commit cfa1971

File tree

2 files changed

+29
-29
lines changed

2 files changed

+29
-29
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ types. The driver currently supports the following conversions:
181181
</tr>
182182
<tr>
183183
<td>str/String</td>
184-
<td>VARCHAR, CHAR(n), TEXT, CITEXT</td>
184+
<td>VARCHAR, CHAR(n), TEXT, CITEXT, NAME</td>
185185
</tr>
186186
<tr>
187187
<td>[u8]/Vec&lt;u8&gt;</td>

src/types/mod.rs

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -256,19 +256,19 @@ impl WrongTypeNew for WrongType {
256256
/// The following implementations are provided by this crate, along with the
257257
/// corresponding Postgres types:
258258
///
259-
/// | Rust type | Postgres type(s) |
260-
/// |-----------------------------------|--------------------------------|
261-
/// | `bool` | BOOL |
262-
/// | `i8` | "char" |
263-
/// | `i16` | SMALLINT, SMALLSERIAL |
264-
/// | `i32` | INT, SERIAL |
265-
/// | `u32` | OID |
266-
/// | `i64` | BIGINT, BIGSERIAL |
267-
/// | `f32` | REAL |
268-
/// | `f64` | DOUBLE PRECISION |
269-
/// | `String` | VARCHAR, CHAR(n), TEXT, CITEXT |
270-
/// | `Vec<u8>` | BYTEA |
271-
/// | `HashMap<String, Option<String>>` | HSTORE |
259+
/// | Rust type | Postgres type(s) |
260+
/// |-----------------------------------|--------------------------------------|
261+
/// | `bool` | BOOL |
262+
/// | `i8` | "char" |
263+
/// | `i16` | SMALLINT, SMALLSERIAL |
264+
/// | `i32` | INT, SERIAL |
265+
/// | `u32` | OID |
266+
/// | `i64` | BIGINT, BIGSERIAL |
267+
/// | `f32` | REAL |
268+
/// | `f64` | DOUBLE PRECISION |
269+
/// | `String` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
270+
/// | `Vec<u8>` | BYTEA |
271+
/// | `HashMap<String, Option<String>>` | HSTORE |
272272
///
273273
/// In addition, some implementations are provided for types in third party
274274
/// crates. These are disabled by default; to opt into one of these
@@ -462,21 +462,21 @@ pub enum IsNull {
462462
/// The following implementations are provided by this crate, along with the
463463
/// corresponding Postgres types:
464464
///
465-
/// | Rust type | Postgres type(s) |
466-
/// |-----------------------------------|--------------------------------|
467-
/// | `bool` | BOOL |
468-
/// | `i8` | "char" |
469-
/// | `i16` | SMALLINT, SMALLSERIAL |
470-
/// | `i32` | INT, SERIAL |
471-
/// | `u32` | OID |
472-
/// | `i64` | BIGINT, BIGSERIAL |
473-
/// | `f32` | REAL |
474-
/// | `f64` | DOUBLE PRECISION |
475-
/// | `String` | VARCHAR, CHAR(n), TEXT, CITEXT |
476-
/// | `&str` | VARCHAR, CHAR(n), TEXT, CITEXT |
477-
/// | `Vec<u8>` | BYTEA |
478-
/// | `&[u8]` | BYTEA |
479-
/// | `HashMap<String, Option<String>>` | HSTORE |
465+
/// | Rust type | Postgres type(s) |
466+
/// |-----------------------------------|--------------------------------------|
467+
/// | `bool` | BOOL |
468+
/// | `i8` | "char" |
469+
/// | `i16` | SMALLINT, SMALLSERIAL |
470+
/// | `i32` | INT, SERIAL |
471+
/// | `u32` | OID |
472+
/// | `i64` | BIGINT, BIGSERIAL |
473+
/// | `f32` | REAL |
474+
/// | `f64` | DOUBLE PRECISION |
475+
/// | `String` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
476+
/// | `&str` | VARCHAR, CHAR(n), TEXT, CITEXT, NAME |
477+
/// | `Vec<u8>` | BYTEA |
478+
/// | `&[u8]` | BYTEA |
479+
/// | `HashMap<String, Option<String>>` | HSTORE |
480480
///
481481
/// In addition, some implementations are provided for types in third party
482482
/// crates. These are disabled by default; to opt into one of these

0 commit comments

Comments
 (0)