sql-testing-tools 0.2.13__py3-none-any.whl → 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,7 +22,8 @@ dbMap = {
22
22
  "dbiu.unfallstatistik": 15,
23
23
  "dbiu.videospiele_einfach": 16,
24
24
  "dbiu.videospiele": 17,
25
- "dbiu.wetterdaten": 18
25
+ "dbiu.wetterdaten": 18,
26
+ "dbiu.terra": 19
26
27
  }
27
28
 
28
29
  __db=""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sql_testing_tools
3
- Version: 0.2.13
3
+ Version: 0.3.0
4
4
  Description-Content-Type: text/markdown
5
5
  License-File: LICENSE
6
6
  Requires-Dist: sqlparse>=0.5.1
@@ -74,6 +74,7 @@ Currently supported to use with DB name are:
74
74
  16. `dbiu.videospiele_einfach`: https://www.dbiu.de/videospiele
75
75
  17. `dbiu.videospiele`: https://www.dbiu.de/videospiele2
76
76
  18. `dbiu.wetterdaten`: https://www.dbiu.de/wetterdaten
77
+ 19. `dbiu.terra`: https://terra.sachsen.schule/
77
78
 
78
79
  **Option 2:** Use your own SQLite database with relative path starting at the working dir of your test repository.
79
80
  ``` python
@@ -133,7 +134,38 @@ res = checkEquality()
133
134
 
134
135
 
135
136
 
136
- ### Changelog
137
+ ## Changelog
138
+
139
+ ### Version 0.3 (since 0.2)
140
+ #### SQL Features
141
+ - Support `LIMIT` clause
142
+ - Support `LIKE` operator
143
+ - Support `<=` and `>=` (leq and geq)
144
+ - Support `ASC`/`DESC` in `ORDER BY` (also with multiple columns and order directions), no direction treated as `ASC`
145
+ - Support `NOT`
146
+ - Accept `COUNT(colname)` in addition to `COUNT(*)`
147
+ - Normalize string inequality: `<>`, `!=`, `NOT LIKE` → `NOT...LIKE...`
148
+ - Ignore case in `=` string comparison and therefore `convert` to LIKE (if no `%`, `_` in string)
149
+
150
+ #### Test Features
151
+ - Added support for [dbiu.de](https://www.datenbanken-im-unterricht.de/catalog.php) databases 1-18 (loaded via [dbiu_databases](https://github.com/ValentinHerrmann/dbiu_databases)) with option to still load DBs from local repo
152
+ - Added more check methods for single parts of queries: `checkColumns`, `checkTables`, `checkCondition`, `checkOrder`, `checkGroup`, `checkKeywords`
153
+ - Improved documentation
154
+ - Verified that `;`, whitespaces (at the ende of the query), and linebreaks are ignored
155
+
156
+ #### Bug Fixes
157
+ - Fixed bug when having only one column selected
158
+ - Fixed handling of nested conditions with parantheses
159
+ - Fixed memory problem with huge cross products (used to lead to build failed)
160
+ - Fixed bug that forced irrelevant equality order if both sides aren't literals
161
+ - Fixed part checks if keywords are in wrong order
162
+ - Fixed bug in checkKeywords: if keyword was present in one query and not in the other, the comparison was not performed correctly
163
+
164
+ #### Other
165
+ - added dbiu.terra database support
166
+
167
+ <details>
168
+ <summary>Detailed Changelogs of Versions 0.2.x</summary>
137
169
 
138
170
  ##### V 0.2.13
139
171
  - Acccept `COUNT(colname)`, too (instead of just `COUNT(*)`)
@@ -180,9 +212,35 @@ res = checkEquality()
180
212
  ##### V 0.2.1
181
213
  - Support LIMIT
182
214
 
215
+
216
+ </details>
217
+
218
+ ---
219
+
220
+ ### Version 0.2
221
+ #### SQL Features
222
+ - Support SELECT: columns with our without table prefix
223
+ - Support FROM: one or more table from DB; no queries as tables!
224
+ - Support WHERE: single conditions; no Paranthesises!
225
+ - Support GROUP BY one or more columns
226
+ - Support Support ORDER BY
227
+ - Support chained conditions (with AND,OR and Paranthesises) in WHERE statement
228
+ - Support aggregate functions
229
+
230
+
231
+ #### Bug Fixes
232
+ - Fixed import error to ensure imports working in different environments
233
+ - Fixed linebreak problems: Linebreaks are now converted into whitespaces before parsing where tokens
234
+
235
+
236
+
237
+
238
+
239
+ <details>
240
+ <summary>Detailed Changelogs of Versions 0.1.x</summary>
241
+
183
242
  ##### V 0.1.9 + 0.2.0
184
243
  - Support ORDER BY
185
-
186
244
  ##### V 0.1.8
187
245
  - Fixed linebreak problems: Linebreaks are now converted into whitespaces before parsing where tokens
188
246
 
@@ -199,3 +257,4 @@ res = checkEquality()
199
257
  - WHERE: single conditions; no Paranthesises!
200
258
  - GROUP BY one or more columns
201
259
 
260
+ </details>
@@ -0,0 +1,9 @@
1
+ sql_testing_tools/BaseAccess.py,sha256=p8hvfC8jLcVE5u2s61mqg0BVlozy3PAGKyim-h_OjFo,6387
2
+ sql_testing_tools/Helper.py,sha256=1vxw6e04MK7HqnaPONCH2h0rZqDhgfNFI5z6hJ1pKfU,8998
3
+ sql_testing_tools/TokenProcessing.py,sha256=BzD_mdVT_FPOJQc2KF9pEHp-s3tQ3NUusXTdSDFCW-U,14149
4
+ sql_testing_tools/__init__.py,sha256=eihMp9aizQd5Lnegu0y57WcyCinmy4Jvp66e0fiMPU4,49
5
+ sql_testing_tools-0.3.0.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
6
+ sql_testing_tools-0.3.0.dist-info/METADATA,sha256=LqMugXaeOyZ7QWg8AdhPiVYsIFEOrUR5W65xt-krVWI,10034
7
+ sql_testing_tools-0.3.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
+ sql_testing_tools-0.3.0.dist-info/top_level.txt,sha256=qwEkmfJ_lYhIwcLXgfU75m0_JavVbOg96fN2zSatN3E,18
9
+ sql_testing_tools-0.3.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- sql_testing_tools/BaseAccess.py,sha256=GyRdmiooeeX7FknojGn8nA5oliQ2CoViZYdKHxGv7-8,6365
2
- sql_testing_tools/Helper.py,sha256=1vxw6e04MK7HqnaPONCH2h0rZqDhgfNFI5z6hJ1pKfU,8998
3
- sql_testing_tools/TokenProcessing.py,sha256=BzD_mdVT_FPOJQc2KF9pEHp-s3tQ3NUusXTdSDFCW-U,14149
4
- sql_testing_tools/__init__.py,sha256=eihMp9aizQd5Lnegu0y57WcyCinmy4Jvp66e0fiMPU4,49
5
- sql_testing_tools-0.2.13.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
6
- sql_testing_tools-0.2.13.dist-info/METADATA,sha256=8e5Eubi2zK0eyOy-l8a2hQuAvP7nAwDH8JQiDiXsEL0,7730
7
- sql_testing_tools-0.2.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
8
- sql_testing_tools-0.2.13.dist-info/top_level.txt,sha256=qwEkmfJ_lYhIwcLXgfU75m0_JavVbOg96fN2zSatN3E,18
9
- sql_testing_tools-0.2.13.dist-info/RECORD,,