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
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# [:biohazard: W.I.P :biohazard:]support-query-builder [](https://github.com/AniTrend/support-query-builder/actions/workflows/android-test.yml) [](https://www.codacy.com/gh/AniTrend/support-query-builder/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AniTrend/support-query-builder&utm_campaign=Badge_Grade) [](https://app.fossa.com/projects/git%2Bgithub.com%2FAniTrend%2Fsupport-query-builder?ref=badge_shield) [](https://jitpack.io/#AniTrend/support-query-builder)
1
+
# support-query-builder [](https://github.com/AniTrend/support-query-builder/actions/workflows/android-test.yml) [](https://www.codacy.com/gh/AniTrend/support-query-builder/dashboard?utm_source=github.com&utm_medium=referral&utm_content=AniTrend/support-query-builder&utm_campaign=Badge_Grade) [](https://app.fossa.com/projects/git%2Bgithub.com%2FAniTrend%2Fsupport-query-builder?ref=badge_shield) [](https://jitpack.io/#AniTrend/support-query-builder)
2
2
3
3
A simple yet comprehensive sql **select** query builder with featuring an annotation processor to generate schema objects from [Room](https://developer.android.com/reference/androidx/room/Room) annotations that plugs straight into [RawQuery](https://developer.android.com/reference/androidx/room/RawQuery)
@@ -117,7 +125,7 @@ class QueryBuilderTest : TestCase() {
117
125
}
118
126
119
127
fun`test select with inner join and where clause plus filter`() {
120
-
val expected ="SELECT * FROM table_name INNER JOIN other_table_name ON other_column_id = column_id WHERE (column_name = 'something' AND column_name LIKE '%pe')"
128
+
val expected ="SELECT * FROM table_name INNER JOIN other_table_name ON other_column_id = column_id WHERE column_name = 'something' AND column_name LIKE '%pe'"
121
129
builder from {
122
130
table.innerJoin("other_table_name").on(
123
131
"other_column_id", "column_id"
@@ -131,7 +139,7 @@ class QueryBuilderTest : TestCase() {
131
139
}
132
140
133
141
fun`test select with inner join, left join and where clause plus filter`() {
134
-
val expected ="SELECT * FROM table_name INNER JOIN other_table_name ON other_column_id = column_id LEFT JOIN some_table_name ON some_other_column_id = column_id WHERE (column_name = 'something' AND column_name LIKE '%pe')"
142
+
val expected ="SELECT * FROM table_name INNER JOIN other_table_name ON other_column_id = column_id LEFT JOIN some_table_name ON some_other_column_id = column_id WHERE column_name = 'something' AND column_name LIKE '%pe'"
135
143
builder from {
136
144
table.innerJoin("other_table_name").on(
137
145
"other_column_id", "column_id"
@@ -148,7 +156,7 @@ class QueryBuilderTest : TestCase() {
148
156
}
149
157
150
158
fun`test select with inner join, left join and where clause plus filter segmented`() {
151
-
val expected ="SELECT * FROM table_name INNER JOIN other_table_name ON other_column_id = column_id LEFT JOIN some_table_name ON some_other_column_id = column_id WHERE (column_name = 'something' AND column_name LIKE '%pe')"
159
+
val expected ="SELECT * FROM table_name INNER JOIN other_table_name ON other_column_id = column_id LEFT JOIN some_table_name ON some_other_column_id = column_id WHERE column_name = 'something' AND column_name LIKE '%pe'"
152
160
builder from table
153
161
builder from {
154
162
innerJoin("other_table_name") {
@@ -167,4 +175,4 @@ class QueryBuilderTest : TestCase() {
0 commit comments