File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ type CanonCrateName<T> = self::canon_crate_name::HelperType<T>;
88
88
type All = diesel:: dsl:: Select < crates:: table , AllColumns > ;
89
89
type WithName < ' a > = diesel:: dsl:: Eq < CanonCrateName < crates:: name > , CanonCrateName < & ' a str > > ;
90
90
/// The result of a loose search
91
- type LikeName < ' a > = diesel:: pg :: expression :: helper_types :: ILike <
91
+ type LikeName < ' a > = diesel:: dsl :: Like <
92
92
CanonCrateName < crates:: name > ,
93
93
CanonCrateName < & ' a str > ,
94
94
> ;
@@ -241,20 +241,10 @@ impl<'a> NewCrate<'a> {
241
241
242
242
impl Crate {
243
243
/// SQL filter with the `like` binary operator
244
- /// ```sql
245
- /// SELECT *
246
- /// FROM crates
247
- /// WHERE name like $1
248
- /// ```
249
244
pub fn like_name ( name : & str ) -> LikeName < ' _ > {
250
- canon_crate_name ( crates:: name) . ilike ( canon_crate_name ( name) )
245
+ canon_crate_name ( crates:: name) . like ( canon_crate_name ( name) )
251
246
}
252
247
/// SQL filter with the = binary operator
253
- /// ```sql
254
- /// SELECT *
255
- /// FROM crates
256
- /// WHERE name = $1
257
- /// ```
258
248
pub fn with_name ( name : & str ) -> WithName < ' _ > {
259
249
canon_crate_name ( crates:: name) . eq ( canon_crate_name ( name) )
260
250
}
You can’t perform that action at this time.
0 commit comments