mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Add docs for rename_all attribute for Type derive macro (#1212)
* add missing closing bracket in doctest * document rename_all attribute for Type derive
This commit is contained in:
parent
8f1d8c7e2f
commit
0acb0e5eff
@ -117,6 +117,7 @@ pub use json::Json;
|
||||
/// `<SQL type name>` instead. May trigger errors or unexpected behavior if the encoding of the
|
||||
/// given type is different than that of the inferred type (e.g. if you rename the above to
|
||||
/// `VARCHAR`). Affects Postgres only.
|
||||
/// * `#[sqlx(rename_all = "<strategy>")]` on struct definition: See [`derive docs in FromRow`](crate::from_row::FromRow#rename_all)
|
||||
///
|
||||
/// ### Enumeration
|
||||
///
|
||||
|
||||
@ -245,7 +245,7 @@
|
||||
/// # async fn main() {
|
||||
/// # let mut conn = panic!();
|
||||
/// #[derive(sqlx::Type)]
|
||||
/// #[sqlx(transparent)
|
||||
/// #[sqlx(transparent)]
|
||||
/// struct MyInt4(i32);
|
||||
///
|
||||
/// let my_int = MyInt4(1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user