queryparser-python3 0.7.3__tar.gz → 0.8.0.dev0__tar.gz
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.
- {queryparser_python3-0.7.3/lib/queryparser_python3.egg-info → queryparser_python3-0.8.0.dev0}/PKG-INFO +7 -8
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/README.md +5 -6
- queryparser_python3-0.8.0.dev0/lib/queryparser/__init__.py +1 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/adql/ADQLParser.py +873 -860
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/adql/adqltranslator.py +50 -25
- queryparser_python3-0.8.0.dev0/lib/queryparser/postgresql/PostgreSQLLexer.py +1254 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/postgresql/PostgreSQLParser.py +1496 -2096
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/postgresql/PostgreSQLParserListener.py +0 -81
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0/lib/queryparser_python3.egg-info}/PKG-INFO +7 -8
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/pyproject.toml +0 -1
- queryparser_python3-0.7.3/lib/queryparser/__init__.py +0 -1
- queryparser_python3-0.7.3/lib/queryparser/postgresql/PostgreSQLLexer.py +0 -1247
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/LICENSE +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/adql/ADQLLexer.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/adql/ADQLParserListener.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/adql/ADQLParserVisitor.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/adql/__init__.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/common/__init__.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/common/common.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/exceptions/__init__.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/mysql/MySQLLexer.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/mysql/MySQLParser.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/mysql/MySQLParserListener.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/mysql/__init__.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/mysql/mysqllisteners.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/mysql/mysqlprocessor.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/postgresql/__init__.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/postgresql/postgresqllisteners.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser/postgresql/postgresqlprocessor.py +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser_python3.egg-info/SOURCES.txt +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser_python3.egg-info/dependency_links.txt +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser_python3.egg-info/requires.txt +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/lib/queryparser_python3.egg-info/top_level.txt +0 -0
- {queryparser_python3-0.7.3 → queryparser_python3-0.8.0.dev0}/setup.cfg +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: queryparser-python3
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0.dev0
|
|
4
4
|
Summary: Package for parsing PostgreSQL/MySQL and translating ADQL to PostgreSQL/MySQL.
|
|
5
5
|
Author-email: Gal Matijevic <gmatijevic@aip.de>
|
|
6
|
-
Maintainer-email: Kirill Makan <kmakan@aip.de
|
|
6
|
+
Maintainer-email: Kirill Makan <kmakan@aip.de>
|
|
7
7
|
License: Apache-2.0
|
|
8
8
|
Project-URL: Repository, https://github.com/aipescience/queryparser.git
|
|
9
9
|
Project-URL: Issues, https://github.com/aipescience/queryparser/issues
|
|
@@ -95,9 +95,9 @@ to install the generated parser in your virtual environment.
|
|
|
95
95
|
Additional requirements
|
|
96
96
|
-----------------------
|
|
97
97
|
The queryparser assumes that the PostgreSQL database has the extension
|
|
98
|
-
[pg_sphere](https://github.com/
|
|
99
|
-
Although
|
|
100
|
-
**queries will not run** without this extension installed
|
|
98
|
+
[pg_sphere](https://github.com/postgrespro/pgsphere) installed.
|
|
99
|
+
Although `pg_sphere` is not required for the Python module, PostgreSQL
|
|
100
|
+
**queries will not run** without this extension installed in the database.
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
Parsing MySQL and PostgreSQL
|
|
@@ -152,7 +152,7 @@ the `ADQLQueryTranslator` class
|
|
|
152
152
|
|
|
153
153
|
```python
|
|
154
154
|
from queryparser.adql import ADQLQueryTranslator
|
|
155
|
-
adql = "SELECT TOP 100 POINT('ICRS', ra,
|
|
155
|
+
adql = "SELECT TOP 100 POINT('ICRS', ra, dec) FROM db.tab;"
|
|
156
156
|
adt = ADQLQueryTranslator(adql)
|
|
157
157
|
```
|
|
158
158
|
|
|
@@ -162,7 +162,7 @@ and calling
|
|
|
162
162
|
adt.to_postgresql()
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
which returns a translated string representing a valid
|
|
165
|
+
which returns a translated string representing a valid PostgreSQL query if
|
|
166
166
|
the ADQL query had no errors. The PostgreSQL query can then be parsed with the
|
|
167
167
|
`PostgreSQLQueryProcessor` in the same way as shown above.
|
|
168
168
|
|
|
@@ -181,4 +181,3 @@ then run the test suite with
|
|
|
181
181
|
```bash
|
|
182
182
|
python -m pytest lib/
|
|
183
183
|
```
|
|
184
|
-
|
|
@@ -63,9 +63,9 @@ to install the generated parser in your virtual environment.
|
|
|
63
63
|
Additional requirements
|
|
64
64
|
-----------------------
|
|
65
65
|
The queryparser assumes that the PostgreSQL database has the extension
|
|
66
|
-
[pg_sphere](https://github.com/
|
|
67
|
-
Although
|
|
68
|
-
**queries will not run** without this extension installed
|
|
66
|
+
[pg_sphere](https://github.com/postgrespro/pgsphere) installed.
|
|
67
|
+
Although `pg_sphere` is not required for the Python module, PostgreSQL
|
|
68
|
+
**queries will not run** without this extension installed in the database.
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
Parsing MySQL and PostgreSQL
|
|
@@ -120,7 +120,7 @@ the `ADQLQueryTranslator` class
|
|
|
120
120
|
|
|
121
121
|
```python
|
|
122
122
|
from queryparser.adql import ADQLQueryTranslator
|
|
123
|
-
adql = "SELECT TOP 100 POINT('ICRS', ra,
|
|
123
|
+
adql = "SELECT TOP 100 POINT('ICRS', ra, dec) FROM db.tab;"
|
|
124
124
|
adt = ADQLQueryTranslator(adql)
|
|
125
125
|
```
|
|
126
126
|
|
|
@@ -130,7 +130,7 @@ and calling
|
|
|
130
130
|
adt.to_postgresql()
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
-
which returns a translated string representing a valid
|
|
133
|
+
which returns a translated string representing a valid PostgreSQL query if
|
|
134
134
|
the ADQL query had no errors. The PostgreSQL query can then be parsed with the
|
|
135
135
|
`PostgreSQLQueryProcessor` in the same way as shown above.
|
|
136
136
|
|
|
@@ -149,4 +149,3 @@ then run the test suite with
|
|
|
149
149
|
```bash
|
|
150
150
|
python -m pytest lib/
|
|
151
151
|
```
|
|
152
|
-
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = '0.8.0dev0'
|