Skip to content

Commit d4e1502

Browse files
authored
updated changelog (#43)
* Added 'like' operator. Removed unneeded whitespaces on queries. * Fixes for like operator. Added tests for like operators. * Upgrade to v0.4.1 * Fix clippy warnings
1 parent 6f30744 commit d4e1502

2 files changed

Lines changed: 17 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ Year format is defined as: `YYYY-m-d`
99

1010
## [Unreleased]
1111

12+
## [0.4.1 - 2023 - 04 - 23
13+
14+
### Feature
15+
16+
-The "Like" operator has been added with 3 options:
17+
18+
Full: allows a search filtering by the field provided and the value contains the String provided.
19+
Left: allows you to perform a filtered search by the field provided and the value ends with the String provided.
20+
Right: allows a search filtering by the provided field and the value starts with the provided String.
21+
22+
The logic of the operators has been changed a bit.
23+
24+
The corresponding tests have been added to validate that the queries with "Like" are generated correctly.
25+
26+
1227
## [0.4.0] - 2023 - 04 - 23
1328

1429
### Feature

canyon_crud/src/query_elements/query_builder.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ where
233233
self.query.params.push(qp)
234234
});
235235

236-
self.query.sql.push_str(")");
236+
self.query.sql.push(')')
237237
}
238238

239239
fn or_values_in<Z, Q>(&mut self, r#or: Z, values: &'a [Q])
@@ -264,7 +264,7 @@ where
264264
self.query.params.push(qp)
265265
});
266266

267-
self.query.sql.push_str(")");
267+
self.query.sql.push(')')
268268
}
269269

270270
#[inline]

0 commit comments

Comments
 (0)