Skip to content

Commit f91d6a5

Browse files
committed
Mention Option<T> and Vec<T> impls in README
1 parent 498eca6 commit f91d6a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,13 @@ types. The driver currently supports the following conversions:
262262
</tbody>
263263
</table>
264264

265+
`Option<T>` implements `FromSql` where `T: FromSql` and `ToSql` where `T:
266+
ToSql`, and represents nullable Postgres values.
267+
268+
`&[T]` and `Vec<T>` implement `ToSql` where `T: ToSql`, and `Vec<T>`
269+
additionally implements `FromSql` where `T: FromSql`, which represent
270+
one-dimensional Postgres arrays.
271+
265272
More conversions can be defined by implementing the `ToSql` and `FromSql`
266273
traits.
267274

0 commit comments

Comments
 (0)