File tree 1 file changed +4
-1
lines changed
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ mod utils;
50
50
///
51
51
/// # Accessors: Getters
52
52
/// ormx will generate accessor functions for fields annotated with `#[ormx(get_one)]`,
53
- /// `#[ormx(get_optional)]` and `#[ormx(get_many )]`.
53
+ /// `#[ormx(get_optional)]`, `#[ormx(get_many)]` and `#[ormx(get_any )]`.
54
54
/// These functions can be used to query a row by the value of the annotated field.
55
55
///
56
56
/// The generated function will have these signature:
@@ -63,6 +63,9 @@ mod utils;
63
63
/// **`#[ormx(get_many)]`**:
64
64
/// `{pub} async fn get_by_{field_name}(&{field_type}) -> Result<Vec<Self>>`
65
65
///
66
+ /// **`#[ormx(get_any)]`**:
67
+ /// `{pub} async fn get_by_{field_name}(&[{field_type}]) -> Result<Vec<Self>>`
68
+ ///
66
69
/// By default, the function will be named `get_by_{field_name)`, though this can be changed by
67
70
/// supplying a custom name: `#[ormx(get_one = by_id)]`.
68
71
/// By default, the function will take a reference to the type of the annotated field as an argument,
You can’t perform that action at this time.
0 commit comments