You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ with support for rendering SQL formatted properly for MyBatis3 and Spring's Name
14
14
15
15
The library also contains extensions for Kotlin that enable an idiomatic Kotlin DSL for SQL.
16
16
17
-
The library will generate full DELETE, INSERT, SELECT, and UPDATE statements. The DSL implementd by the
17
+
The library will generate full DELETE, INSERT, SELECT, and UPDATE statements. The DSL implemented by the
18
18
library is very similar to native SQL but it includes many functions that allow for very dynamic SQL statements.
19
19
For example, a typical search can be coded with a query like this (the following code is Kotlin, but Java code is very similar):
20
20
@@ -37,8 +37,8 @@ This query does quite a lot...
37
37
1. It is a search with three search criteria - any combination of search criteria can be used
38
38
1. Only records with an active status will be returned
39
39
1. If `id` is specified, it will be padded to length 5 with '0' at the beginning of the string
40
-
1. If `firstName` is specified, it will be used in a caseinsensitive search and SQL wildcards will be appended
41
-
1. If `lastName` is specified, it will be used in a caseinsensitive search and SQL wildcards will be appended
40
+
1. If `firstName` is specified, it will be used in a case-insensitive search and SQL wildcards will be appended
41
+
1. If `lastName` is specified, it will be used in a case-insensitive search and SQL wildcards will be appended
42
42
1. The query results are limited to 500 rows
43
43
44
44
Using the dynamic SQL features of the library eliminates a lot of code that would be required for checking nulls, adding wild cards, etc. This query clearly expresses the intent of the search in just a few lines.
0 commit comments