-
When parsing a query, if it has more than one statement, the statement of index 1+ has to start with a correct keyword to be correctly identified as an statement and therefore parsed.
For these exa…
-
```py
from cratedb_sqlparse import sqlparse
query = """
SELECT COUNT(*) FOM doc.tbl f WHERE f.id = 1;
INSERT INTO doc.tbl VALUES (1, 23, 4);
"""
t = sqlparse(query)
t1 = t[0]
print(t1.exce…
-
$ pip list
Package Version
------------------- -------
asgiref 3.8.1
dj-rest-auth 6.0.0
Django 5.0.7
django-allauth 0.63.6
django-filter 2…
-
Currently the formatter for `sqlformat` goes like this:
```elisp
(format-all--buffer-easy executable "--encoding" ienc "-")
```
Which is incorrect:
Output of `sqlformat --help`
```
usage: sql…
-
/home/wlodek/.local/bin/pg_diagram --format svg -o lolo.svg lolo.sql
Could not parse statement:
CREATE TABLE public."tp_timeentry" (
id integer NOT NULL,
line_no integer,
date date …
-
### Description
I ran pip upgrade. I got many packagers uninstalled and installed.
At the end I get this line:
`Successfully installed Faker-25.3.0 boto3-1.34.117 botocore-1.34.117 django-crisp…
-
### Apache Airflow version
Other Airflow 2 version (please specify below)
### What happened
We're currently using Airflow 2.6.1 but I believe the issue persists in the latest versions.
The…
-
I know this is not the proper channel fot this issue, but I'm not sure where else to go.
For reference I provide my installs, result of pip freezing `django latest` and `psycopg2-binary latest` (20…
-
The version of sqlparse released a few days ago seems to cause clickhouse-cli (0.3.8) to not start, giving a ValueErrror.
Full traceback:
```Traceback (most recent call last):
File "/home/jrolf…
-
HI!
```python
sql = """#comments
select * from test_user WHERE id= 1;"""
sql1 = sqlparse.parse(sql)
t = sqlparse.sql.Statement(sql1[0].tokens)
sql2 = sqlparse.format(sql,strip_comments=True)…