queryparser-python3 0.6.1__py3-none-any.whl → 0.7.1__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.
@@ -1,6 +1,6 @@
1
- # Generated from src/queryparser/postgresql/PostgreSQLParser.g4 by ANTLR 4.11.1
1
+ # Generated from src/queryparser/postgresql/PostgreSQLParser.g4 by ANTLR 4.13.1
2
2
  from antlr4 import *
3
- if __name__ is not None and "." in __name__:
3
+ if "." in __name__:
4
4
  from .PostgreSQLParser import PostgreSQLParser
5
5
  else:
6
6
  from PostgreSQLParser import PostgreSQLParser
@@ -260,6 +260,15 @@ class PostgreSQLParserListener(ParseTreeListener):
260
260
  pass
261
261
 
262
262
 
263
+ # Enter a parse tree produced by PostgreSQLParser#displayed_column_arr.
264
+ def enterDisplayed_column_arr(self, ctx:PostgreSQLParser.Displayed_column_arrContext):
265
+ pass
266
+
267
+ # Exit a parse tree produced by PostgreSQLParser#displayed_column_arr.
268
+ def exitDisplayed_column_arr(self, ctx:PostgreSQLParser.Displayed_column_arrContext):
269
+ pass
270
+
271
+
263
272
  # Enter a parse tree produced by PostgreSQLParser#exp_factor1.
264
273
  def enterExp_factor1(self, ctx:PostgreSQLParser.Exp_factor1Context):
265
274
  pass
@@ -818,6 +827,78 @@ class PostgreSQLParserListener(ParseTreeListener):
818
827
  pass
819
828
 
820
829
 
830
+ # Enter a parse tree produced by PostgreSQLParser#spoint_to_array.
831
+ def enterSpoint_to_array(self, ctx:PostgreSQLParser.Spoint_to_arrayContext):
832
+ pass
833
+
834
+ # Exit a parse tree produced by PostgreSQLParser#spoint_to_array.
835
+ def exitSpoint_to_array(self, ctx:PostgreSQLParser.Spoint_to_arrayContext):
836
+ pass
837
+
838
+
839
+ # Enter a parse tree produced by PostgreSQLParser#spoint_to_array_deg.
840
+ def enterSpoint_to_array_deg(self, ctx:PostgreSQLParser.Spoint_to_array_degContext):
841
+ pass
842
+
843
+ # Exit a parse tree produced by PostgreSQLParser#spoint_to_array_deg.
844
+ def exitSpoint_to_array_deg(self, ctx:PostgreSQLParser.Spoint_to_array_degContext):
845
+ pass
846
+
847
+
848
+ # Enter a parse tree produced by PostgreSQLParser#sbox_to_array.
849
+ def enterSbox_to_array(self, ctx:PostgreSQLParser.Sbox_to_arrayContext):
850
+ pass
851
+
852
+ # Exit a parse tree produced by PostgreSQLParser#sbox_to_array.
853
+ def exitSbox_to_array(self, ctx:PostgreSQLParser.Sbox_to_arrayContext):
854
+ pass
855
+
856
+
857
+ # Enter a parse tree produced by PostgreSQLParser#sbox_to_array_deg.
858
+ def enterSbox_to_array_deg(self, ctx:PostgreSQLParser.Sbox_to_array_degContext):
859
+ pass
860
+
861
+ # Exit a parse tree produced by PostgreSQLParser#sbox_to_array_deg.
862
+ def exitSbox_to_array_deg(self, ctx:PostgreSQLParser.Sbox_to_array_degContext):
863
+ pass
864
+
865
+
866
+ # Enter a parse tree produced by PostgreSQLParser#scircle_to_array.
867
+ def enterScircle_to_array(self, ctx:PostgreSQLParser.Scircle_to_arrayContext):
868
+ pass
869
+
870
+ # Exit a parse tree produced by PostgreSQLParser#scircle_to_array.
871
+ def exitScircle_to_array(self, ctx:PostgreSQLParser.Scircle_to_arrayContext):
872
+ pass
873
+
874
+
875
+ # Enter a parse tree produced by PostgreSQLParser#scircle_to_array_deg.
876
+ def enterScircle_to_array_deg(self, ctx:PostgreSQLParser.Scircle_to_array_degContext):
877
+ pass
878
+
879
+ # Exit a parse tree produced by PostgreSQLParser#scircle_to_array_deg.
880
+ def exitScircle_to_array_deg(self, ctx:PostgreSQLParser.Scircle_to_array_degContext):
881
+ pass
882
+
883
+
884
+ # Enter a parse tree produced by PostgreSQLParser#spoly_to_array.
885
+ def enterSpoly_to_array(self, ctx:PostgreSQLParser.Spoly_to_arrayContext):
886
+ pass
887
+
888
+ # Exit a parse tree produced by PostgreSQLParser#spoly_to_array.
889
+ def exitSpoly_to_array(self, ctx:PostgreSQLParser.Spoly_to_arrayContext):
890
+ pass
891
+
892
+
893
+ # Enter a parse tree produced by PostgreSQLParser#spoly_to_array_deg.
894
+ def enterSpoly_to_array_deg(self, ctx:PostgreSQLParser.Spoly_to_array_degContext):
895
+ pass
896
+
897
+ # Exit a parse tree produced by PostgreSQLParser#spoly_to_array_deg.
898
+ def exitSpoly_to_array_deg(self, ctx:PostgreSQLParser.Spoly_to_array_degContext):
899
+ pass
900
+
901
+
821
902
  # Enter a parse tree produced by PostgreSQLParser#pg_sphere_object.
822
903
  def enterPg_sphere_object(self, ctx:PostgreSQLParser.Pg_sphere_objectContext):
823
904
  pass
@@ -1,51 +1,3 @@
1
1
  # -*- coding: utf-8 -*-
2
-
3
- from __future__ import (absolute_import, print_function)
4
-
5
- import antlr4
6
-
7
- from .PostgreSQLParserListener import PostgreSQLParserListener
8
-
9
- from ..common import process_column_name, get_column_name_listener
10
-
11
-
12
- class PgSphereListener(PostgreSQLParserListener):
13
-
14
- def __init__(self, columns, indexed_objects=None):
15
- self.column_name_listener = get_column_name_listener(
16
- PostgreSQLParserListener)()
17
- self.walker = antlr4.ParseTreeWalker()
18
-
19
- self.cctx_dict = {}
20
- for c in columns:
21
- try:
22
- # PgSphere sphere stuff can't be in the USING statement
23
- self.cctx_dict[c[3]] = c[:3]
24
- except IndexError:
25
- pass
26
-
27
- self.indexed_objects = indexed_objects
28
- self.replace_dict = {}
29
-
30
- def enterSpoint(self, ctx):
31
- try:
32
- spoint = self.indexed_objects['spoint']
33
- except KeyError:
34
- return
35
-
36
- cn = process_column_name(self.column_name_listener, self.walker, ctx,
37
- '"')
38
- cols = []
39
-
40
- for c in cn:
41
- try:
42
- cols.append(self.cctx_dict[c[3]])
43
- except KeyError:
44
- pass
45
-
46
- if len(cols):
47
- for sp in spoint:
48
- if sp[0] == cols[0] and sp[1] == cols[1]:
49
- rt = ctx.start.getInputStream().getText(ctx.start.start,
50
- ctx.stop.stop)
51
- self.replace_dict[rt] = sp[2]
2
+ #
3
+ # Put any PostgreSQL specific listeners here.
@@ -14,13 +14,10 @@ from .PostgreSQLLexer import PostgreSQLLexer
14
14
  from .PostgreSQLParser import PostgreSQLParser
15
15
  from .PostgreSQLParserListener import PostgreSQLParserListener
16
16
 
17
- from .postgresqllisteners import PgSphereListener
18
-
19
17
  from ..common import SQLQueryProcessor
20
18
 
21
19
 
22
20
  class PostgreSQLQueryProcessor(SQLQueryProcessor):
23
21
  def __init__(self, query=None):
24
22
  super().__init__(PostgreSQLLexer, PostgreSQLParser,
25
- PostgreSQLParserListener, '"', query,
26
- PgSphereListener)
23
+ PostgreSQLParserListener, '"', query)
@@ -0,0 +1,180 @@
1
+ Metadata-Version: 2.4
2
+ Name: queryparser-python3
3
+ Version: 0.7.1
4
+ Summary: Package for parsing PostgreSQL/MySQL and translating ADQL to PostgreSQL/MySQL.
5
+ Author-email: Gal Matijevic <gmatijevic@aip.de>
6
+ Maintainer-email: Kirill Makan <kmakan@aip.de>
7
+ License: Apache-2.0
8
+ Project-URL: Repository, https://github.com/aipescience/queryparser.git
9
+ Project-URL: Issues, https://github.com/aipescience/queryparser/issues
10
+ Project-URL: Changelog, https://github.com/aipescience/queryparser/blob/master/CHANGELOG.md
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: License :: OSI Approved :: Apache Software License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Classifier: Programming Language :: Python :: 3.10
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Requires-Python: >=3.9
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: antlr4-python3-runtime==4.13.1
24
+ Provides-Extra: test
25
+ Requires-Dist: pytest~=8.2.0; extra == "test"
26
+ Requires-Dist: PyYAML~=6.0; extra == "test"
27
+ Dynamic: license-file
28
+
29
+ queryparser
30
+ ===========
31
+
32
+ **Tool for parsing and processing of (MySQL\*)/PostgreSQL and translation of
33
+ ADQL SELECT-like queries**
34
+
35
+ Designed to be used in conjunction with [django-daiquri](https://github.com/django-daiquiri/daiquiri)
36
+ as a query processing backend but it can be easily used as a stand-alone tool
37
+ or integrated into another project.
38
+
39
+ **\*NOTE: Since version 0.7.0 MySQL is not supported (maintained) anymore.**
40
+
41
+
42
+ [![pytest Workflow Status](https://github.com/aipescience/queryparser/actions/workflows/pytest.yml/badge.svg)](https://github.com/aipescience/queryparser/actions/workflows/pytest.yml)
43
+ [![Coverage Status](https://coveralls.io/repos/aipescience/queryparser/badge.svg?branch=master&service=github)](https://coveralls.io/github/aipescience/queryparser?branch=master)
44
+ [![License](http://img.shields.io/badge/license-APACHE-blue.svg?style=flat)](https://github.com/aipescience/queryparser/blob/master/LICENSE)
45
+ [![Latest Version](https://img.shields.io/pypi/v/queryparser-python3.svg?style=flat)](https://pypi.org/project/queryparser-python3/)
46
+
47
+
48
+
49
+ Installation
50
+ ------------
51
+
52
+ The easiest way to install the package is by using the pip tool:
53
+
54
+ ```bash
55
+ python -m pip install queryparser-python3
56
+ ```
57
+
58
+ Alternatively, you can clone the repository and install it from there.
59
+ However, this step also requires generating the parser which is a slightly
60
+ more elaborate process (see below).
61
+
62
+
63
+ Generating the parser from the git repository
64
+ ---------------------------------------------
65
+
66
+ To generate the parsers you need `python3` , `java` above version
67
+ 7, and `antlr4` (`antlr-4.*-complete.jar` has to be installed inside the
68
+ `/usr/local/lib/`, `/usr/local/bin/` or root directory of the project).
69
+
70
+ The current version of `antlr-4.*-complete.jar` can be downloaded via
71
+
72
+ ```bash
73
+ wget http://www.antlr.org/download/antlr-4.13.1-complete.jar
74
+ ```
75
+
76
+ After cloning the project run
77
+
78
+ ```bash
79
+ make
80
+ ```
81
+
82
+ and a `lib` directory will be created. After that, run
83
+
84
+ ```bash
85
+ python -m pip install .
86
+ ```
87
+
88
+ to install the generated parser in your virtual environment.
89
+
90
+
91
+ Additional requirements
92
+ -----------------------
93
+ The queryparser assumes that the PostgreSQL database has the extension
94
+ [pg_sphere](https://github.com/kimakan/pgsphere/tree/aiprdbms16) installed.
95
+ Although the `pg_sphere` is not required for the python module, the PostgreSQL
96
+ **queries will not run** without this extension installed on the database.
97
+
98
+
99
+ Parsing MySQL and PostgreSQL
100
+ ----------------------------
101
+
102
+ **Since version 0.7, MySQL part of the parser is not maintained anymore.
103
+ Thus, the MySQL related functionality cannot be guaranteed!**
104
+
105
+ Parsing and processing of MySQL queries can be done by creating an instance
106
+ of the `MySQLQueryProcessor` class
107
+
108
+ ```python
109
+ from queryparser.mysql import MySQLQueryProcessor
110
+ qp = MySQLQueryProcessor()
111
+ ```
112
+
113
+ feeding it a MySQL query
114
+
115
+ ```python
116
+ sql = "SELECT a FROM db.tab;"
117
+ qp.set_query(sql)
118
+ ```
119
+
120
+ and running it with
121
+
122
+ ```python
123
+ qp.process_query()
124
+ ```
125
+
126
+ After the processing is completed, the processor object `qp` will include
127
+ tables, columns, functions, and keywords used in the query or will raise a
128
+ `QuerySyntaxError` if there are any syntax errors in the query.
129
+
130
+ Alternatively, passing the query at initialization automatically processes it.
131
+
132
+ PostgreSQL parsing is very similar to MySQL, except it requires importing
133
+ the `PostgreSQLProcessor` class:
134
+
135
+ ```python
136
+ from queryparser.postgresql import PostgreSQLQueryProcessor
137
+ qp = PostgreSQLQueryProcessor()
138
+ ```
139
+
140
+ The rest of the functionality remains the same.
141
+
142
+
143
+ Translating ADQL
144
+ ----------------
145
+
146
+ Translation of ADQL queries is done similarly by first creating an instance of
147
+ the `ADQLQueryTranslator` class
148
+
149
+ ```python
150
+ from queryparser.adql import ADQLQueryTranslator
151
+ adql = "SELECT TOP 100 POINT('ICRS', ra, de) FROM db.tab;"
152
+ adt = ADQLQueryTranslator(adql)
153
+ ```
154
+
155
+ and calling
156
+
157
+ ```python
158
+ adt.to_postgresql()
159
+ ```
160
+
161
+ which returns a translated string representing a valid MySQL query if
162
+ the ADQL query had no errors. The PostgreSQL query can then be parsed with the
163
+ `PostgreSQLQueryProcessor` in the same way as shown above.
164
+
165
+ Testing
166
+ -------
167
+
168
+ First in the root directory of the project, install optional dependencies
169
+ (`PyYAML` and `pytest`) by running
170
+
171
+ ```bash
172
+ python -m pip install .[test]
173
+ ```
174
+
175
+ then run the test suite with
176
+
177
+ ```bash
178
+ python -m pytest lib/
179
+ ```
180
+
@@ -0,0 +1,27 @@
1
+ queryparser/__init__.py,sha256=x2pOclYRECzfJMAd4sw67W_FEUEXKPUoISgurYPhSRg,22
2
+ queryparser/adql/ADQLLexer.py,sha256=JVQ_TseEuYMaNr3kHBw50oKMuu4Au1vWak8u1dQAavs,89907
3
+ queryparser/adql/ADQLParser.py,sha256=_kswLJMJIR9EwMhpS17xRC2hcSZo8O1ygkXlHc7Vd0s,370976
4
+ queryparser/adql/ADQLParserListener.py,sha256=V80PMXEy6hoQMwRqExOFRvJocH2eBIdR3BbxW1t14Dk,39836
5
+ queryparser/adql/ADQLParserVisitor.py,sha256=YpDeQorBMJG4AWeBQk7Gxdijmf302WuY83iWu5taOZo,23612
6
+ queryparser/adql/__init__.py,sha256=QjRobun31YF-F8qf66RtwjRgRgRiQjLIao4jaIE5Lv8,108
7
+ queryparser/adql/adqltranslator.py,sha256=8opHoxIbXBeZ2oZ3YC4w2EvsnDlHfJcs7BDJtDcxtg4,25582
8
+ queryparser/common/__init__.py,sha256=k1jnIaxY1TYG8dVXokbsT9Q56msjKRfOSTPEhWbo3GE,214
9
+ queryparser/common/common.py,sha256=cpolo-LaV9xK7aurSPwr58sMine_FJ1J5ZHacV_fvqY,35075
10
+ queryparser/exceptions/__init__.py,sha256=zVJsC5p3_CfpC0wDdVbS0-HLIbRGz6-xMa5K5_qX82A,247
11
+ queryparser/mysql/MySQLLexer.py,sha256=spBkNK5d1cgpAeCxYaw7E3lhFI1qAlx5q40pO2MyLXA,339457
12
+ queryparser/mysql/MySQLParser.py,sha256=moVPn_tOYGWKBuMJqioeb3KkF4cnx31xGGRkv9uyeZI,320949
13
+ queryparser/mysql/MySQLParserListener.py,sha256=c6YPErBcvas9gxg62y5ZYW82eGfT4r7a1ewzoWaFt-Y,24025
14
+ queryparser/mysql/__init__.py,sha256=eH7URYmOEqLxyZyZV2L60UH6qsFQXD4-SjIzyzI13o0,108
15
+ queryparser/mysql/mysqllisteners.py,sha256=D-W-p7QO6-eQDWO-mg-WbAOyodZ6-VU79hg1mvvxWbY,67
16
+ queryparser/mysql/mysqlprocessor.py,sha256=iF9CUUm3Hnw_mkmp3ncaXc_iAd48pr6WM0p0Tmn4Vnw,648
17
+ queryparser/postgresql/PostgreSQLLexer.py,sha256=I5Ovv4ieuAj1gpGZXp21_axF9HhRv73TEpEQ-2WA7NY,73939
18
+ queryparser/postgresql/PostgreSQLParser.py,sha256=7Sqzg0N1Or2D4gPPvMypPOHzq2C4EIt_1ckydq6buD0,325512
19
+ queryparser/postgresql/PostgreSQLParserListener.py,sha256=Fm30DYmRbnAJKAxuE7WH7DA-SCtmyvu0k9Jfe1a79Mc,31774
20
+ queryparser/postgresql/__init__.py,sha256=Y06UttOdTusJH1hHDdmm1XOwNP1K03c7K1iNJrh7Yyw,123
21
+ queryparser/postgresql/postgresqllisteners.py,sha256=wCyqDsNPQ2Hl0odXy-ZZmI3HB_6CY7LvwkQDogOLONg,72
22
+ queryparser/postgresql/postgresqlprocessor.py,sha256=ruxpXQlHOC8YHSbCM3MbYeVtzzDJUu_0zckv7Sg4KvE,708
23
+ queryparser_python3-0.7.1.dist-info/licenses/LICENSE,sha256=oRiVx4r69ZT4QO-yy0V8lx8xhGm_OudJKSjd-Q6NL9Q,25853
24
+ queryparser_python3-0.7.1.dist-info/METADATA,sha256=_4RpAUOXYEvIJFBP9r4wWvqJONJSCK_xftKioEvpeTY,5537
25
+ queryparser_python3-0.7.1.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
26
+ queryparser_python3-0.7.1.dist-info/top_level.txt,sha256=SsQ3yI4UEjGsc6tHaZTmHTdvhAk4Itp5BGQ-J-zvx7U,12
27
+ queryparser_python3-0.7.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.34.2)
2
+ Generator: setuptools (80.4.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,152 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: queryparser-python3
3
- Version: 0.6.1
4
- Summary: Parses PostgreSQL/MySQL and translates ADQL to PostgreSQL/MySQL.
5
- Home-page: https://github.com/aipescience/queryparser
6
- Author: Gal Matijevic
7
- Author-email: gmatijevic@aip.de
8
- Maintainer: Gal Matijevic
9
- Maintainer-email: gmatijevic@aip.de
10
- License: Apache-2.0
11
- Description-Content-Type: text/markdown
12
- License-File: LICENSE
13
- Requires-Dist: antlr4-python3-runtime (==4.11.1)
14
- Requires-Dist: pytest (~=6.2.5)
15
- Requires-Dist: PyYAML (~=6.0)
16
-
17
- queryparser
18
- ===========
19
-
20
- **Tool for parsing and processing of MySQL/PostgreSQL and translation of
21
- ADQL SELECT-like queries**
22
-
23
- Designed to be used in conjunction with [django-daiquri](https://github.com/django-daiquiri/daiquiri)
24
- as a query processing backend but it can be easily used as a stand-alone tool
25
- or integrated into another project.
26
-
27
-
28
- [![pytest Workflow Status](https://github.com/aipescience/queryparser/actions/workflows/pytest.yml/badge.svg)](https://github.com/aipescience/queryparser/actions/workflows/pytest.yml)
29
- [![Coverage Status](https://coveralls.io/repos/aipescience/queryparser/badge.svg?branch=master&service=github)](https://coveralls.io/github/aipescience/queryparser?branch=master)
30
- [![License](http://img.shields.io/badge/license-APACHE-blue.svg?style=flat)](https://github.com/aipescience/queryparser/blob/master/LICENSE)
31
- [![Latest Version](https://img.shields.io/pypi/v/queryparser-python3.svg?style=flat)](https://pypi.org/project/queryparser-python3/)
32
-
33
-
34
-
35
- Installation
36
- ------------
37
-
38
- The easiest way to install the package is by using the pip tool:
39
-
40
- ```bash
41
-
42
- pip install queryparser-python3
43
-
44
- ```
45
-
46
- Alternatively, you can clone the repository and install it from there.
47
- However, this step also requires generating the parser which is a slightly
48
- more elaborate process (see below).
49
-
50
-
51
- Generating the parser from the git repository
52
- ---------------------------------------------
53
-
54
- To generate the parsers you need `python3` , `java` above version
55
- 7, and `antlr4` (`antlr-4.*-complete.jar` has to be installed inside the
56
- `/usr/local/lib/` or `/usr/local/bin/` directories).
57
-
58
- After cloning the project run
59
-
60
- ```bash
61
- make
62
- ```
63
-
64
- and a `lib` directory will be created. After that, run
65
-
66
- ```bash
67
- python setup.py install
68
- ```
69
-
70
- to install the generated parser in your virtual environment.
71
-
72
-
73
- Parsing MySQL and PostgreSQL
74
- ----------------------------
75
-
76
- Parsing and processing of MySQL queries can be done by creating an instance
77
- of the `MySQLQueryProcessor` class
78
-
79
- ```python
80
- from queryparser.mysql import MySQLQueryProcessor
81
- qp = MySQLQueryProcessor()
82
- ```
83
-
84
- feeding it a MySQL query
85
-
86
- ```python
87
- sql = "SELECT a FROM db.tab;"
88
- qp.set_query(sql)
89
- ```
90
-
91
- and running it with
92
-
93
- ```python
94
- qp.process_query()
95
- ```
96
-
97
- After the processing is completed, the processor object `qp` will include
98
- tables, columns, functions, and keywords used in the query or will raise a
99
- `QuerySyntaxError` if there are any syntax errors in the query.
100
-
101
- Alternatively, passing the query at initialization automatically processes it.
102
-
103
- PostgreSQL parsing is very similar to MySQL, except it requires importing
104
- the `PostgreSQLProcessor` class:
105
-
106
- ```python
107
- from queryparser.postgresql import PostgreSQLQueryProcessor
108
- qp = PostgreSQLQueryProcessor()
109
- ```
110
-
111
- The rest of the functionality remains the same.
112
-
113
-
114
- Translating ADQL
115
- ----------------
116
-
117
- Translation of ADQL queries is done similarly by first creating an instance of
118
- the `ADQLQueryTranslator` class
119
-
120
- ```python
121
- from queryparser.adql import ADQLQueryTranslator
122
- adql = "SELECT TOP 100 POINT('ICRS', ra, de) FROM db.tab;"
123
- adt = ADQLQueryTranslator(adql)
124
- ```
125
-
126
- and calling
127
-
128
- ```python
129
- adt.to_mysql()
130
- ```
131
-
132
- which returns a translated string representing a valid MySQL query if
133
- the ADQL query had no errors. The MySQL query can then be parsed with the
134
- `MySQLQueryProcessor` in the same way as shown above.
135
-
136
-
137
- Testing
138
- -------
139
-
140
- First, install `pytest`
141
-
142
- ```bash
143
- pip install pytest
144
- ```
145
-
146
- then run the test suite for a version of python you would like to test with
147
-
148
- ```bash
149
- pytest lib/
150
- ```
151
-
152
- More elaborate testing procedures can be found in the development notes.
@@ -1,27 +0,0 @@
1
- queryparser/__init__.py,sha256=B2CgPl8cAkXsMsVkqx702wz7zyWWTZ4DR3nh2jAi6BQ,259
2
- queryparser/adql/ADQLLexer.py,sha256=VVesSLZFvRi5IHvbvpBHpOIf03M8IeWOnq3M6S9awpY,91908
3
- queryparser/adql/ADQLParser.py,sha256=70Mnz09cnGLdCDV8xoKURdbT6ig-bFWdwYW2HtqQxzE,373980
4
- queryparser/adql/ADQLParserListener.py,sha256=UhcW8miREqDQnF6IxU-e3RCaOh7ovp6dGcI00RBifaA,40319
5
- queryparser/adql/ADQLParserVisitor.py,sha256=ryeUeE2J9Q2Ijp_42wDoxmGpquarNFprSntzDWwc-34,23921
6
- queryparser/adql/__init__.py,sha256=QjRobun31YF-F8qf66RtwjRgRgRiQjLIao4jaIE5Lv8,108
7
- queryparser/adql/adqltranslator.py,sha256=gZEkM6uFYW1BldDWFH-2W6i88453xjdIEsXZvIg_DfQ,18431
8
- queryparser/common/__init__.py,sha256=k1jnIaxY1TYG8dVXokbsT9Q56msjKRfOSTPEhWbo3GE,214
9
- queryparser/common/common.py,sha256=CVGhEqLaM0_xI5bndP5GVCA8ExZfCu34fffHcel7fYo,36829
10
- queryparser/exceptions/__init__.py,sha256=zVJsC5p3_CfpC0wDdVbS0-HLIbRGz6-xMa5K5_qX82A,247
11
- queryparser/mysql/MySQLLexer.py,sha256=9Zi5jwgTL9dQu9cqnEn0Ftpoi5Z22UFyyU-wz4e_5pc,339457
12
- queryparser/mysql/MySQLParser.py,sha256=Y7-WsAL46qFIhSpvNEX44CEv_bM346BiFaRPNlLli9s,321215
13
- queryparser/mysql/MySQLParserListener.py,sha256=L0UT3hmxbURqlCiynOB056mamjdM0hIN07dKWApwnPA,24050
14
- queryparser/mysql/__init__.py,sha256=eH7URYmOEqLxyZyZV2L60UH6qsFQXD4-SjIzyzI13o0,108
15
- queryparser/mysql/mysqllisteners.py,sha256=D-W-p7QO6-eQDWO-mg-WbAOyodZ6-VU79hg1mvvxWbY,67
16
- queryparser/mysql/mysqlprocessor.py,sha256=iF9CUUm3Hnw_mkmp3ncaXc_iAd48pr6WM0p0Tmn4Vnw,648
17
- queryparser/postgresql/PostgreSQLLexer.py,sha256=sF5v5cYimafuHt_qXCdO4FT3XwAcKoHFt4yPdw0m_mU,67816
18
- queryparser/postgresql/PostgreSQLParser.py,sha256=KN7hso4lb_W2bM1zQcyUoEb1VIsz23tiwMsOzg1DCtQ,303018
19
- queryparser/postgresql/PostgreSQLParserListener.py,sha256=b9X9YWaSx5iDmlDShmUOTCMHyGPmOdpoZz-EcBA2fJU,28718
20
- queryparser/postgresql/__init__.py,sha256=Y06UttOdTusJH1hHDdmm1XOwNP1K03c7K1iNJrh7Yyw,123
21
- queryparser/postgresql/postgresqllisteners.py,sha256=e0NoRz9yXMXv1s5Lt7WLsf5XbH5A5IDOhFlPD3NB6ps,1539
22
- queryparser/postgresql/postgresqlprocessor.py,sha256=PUQVQvX5aHelic10f7j6a3qMdlTa8Le9CteFpr36px4,802
23
- queryparser_python3-0.6.1.dist-info/LICENSE,sha256=oRiVx4r69ZT4QO-yy0V8lx8xhGm_OudJKSjd-Q6NL9Q,25853
24
- queryparser_python3-0.6.1.dist-info/METADATA,sha256=pla7hFKHV9IRBuPpNo-TG4hWLGz67W-ZrSUQZa-zQfg,4124
25
- queryparser_python3-0.6.1.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
26
- queryparser_python3-0.6.1.dist-info/top_level.txt,sha256=SsQ3yI4UEjGsc6tHaZTmHTdvhAk4Itp5BGQ-J-zvx7U,12
27
- queryparser_python3-0.6.1.dist-info/RECORD,,