jupyter-duckdb 1.4.114__py3-none-any.whl → 1.4.201__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.
- duckdb_kernel/kernel.py +6 -3
- duckdb_kernel/util/SQL.py +7 -5
- {jupyter_duckdb-1.4.114.dist-info → jupyter_duckdb-1.4.201.dist-info}/METADATA +2 -2
- {jupyter_duckdb-1.4.114.dist-info → jupyter_duckdb-1.4.201.dist-info}/RECORD +6 -6
- {jupyter_duckdb-1.4.114.dist-info → jupyter_duckdb-1.4.201.dist-info}/WHEEL +0 -0
- {jupyter_duckdb-1.4.114.dist-info → jupyter_duckdb-1.4.201.dist-info}/top_level.txt +0 -0
duckdb_kernel/kernel.py
CHANGED
|
@@ -604,9 +604,12 @@ class DuckDBKernel(Kernel):
|
|
|
604
604
|
|
|
605
605
|
def _auto_parser_magic(self, silent: bool, state: MagicState):
|
|
606
606
|
# do not handle statements starting with SQL keywords
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
607
|
+
clean_query = get_last_query(state.code, split_at=None, remove_comments=True)
|
|
608
|
+
clean_query_words = clean_query.strip().split(maxsplit=1)
|
|
609
|
+
|
|
610
|
+
if len(clean_query_words) > 0:
|
|
611
|
+
clean_query_first_word = clean_query_words[0].upper()
|
|
612
|
+
if clean_query_first_word in SQL_KEYWORDS:
|
|
610
613
|
return
|
|
611
614
|
|
|
612
615
|
# try to parse DC
|
duckdb_kernel/util/SQL.py
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# see https://www.postgresql.org/docs/current/sql-commands.html
|
|
2
|
-
SQL_KEYWORDS =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
SQL_KEYWORDS = {
|
|
3
|
+
'ABORT', 'ALTER', 'ANALYZE', 'BEGIN', 'CALL', 'CHECKPOINT', 'CLOSE', 'CLUSTER', 'COMMENT', 'COMMIT', 'COPY',
|
|
4
|
+
'CREATE', 'DEALLOCATE', 'DECLARE', 'DELETE', 'DISCARD', 'DO', 'DROP', 'END', 'EXECUTE', 'EXPLAIN', 'FETCH', 'FROM',
|
|
5
|
+
'GRANT', 'IMPORT', 'INSERT', 'LISTEN', 'LOAD', 'LOCK', 'MERGE', 'MOVE', 'NOTIFY', 'PREPARE', 'REASSIGN', 'REFRESH',
|
|
6
|
+
'REINDEX', 'RELEASE', 'RESET', 'REVOKE', 'ROLLBACK', 'SAVEPOINT', 'SECURITY', 'SELECT', 'SET', 'SHOW', 'START',
|
|
7
|
+
'TRUNCATE', 'UNLISTEN', 'UPDATE', 'VACUUM', 'VALUES'
|
|
8
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: jupyter-duckdb
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.201
|
|
4
4
|
Summary: a basic wrapper kernel for DuckDB
|
|
5
5
|
Home-page: https://dbgit.prakinf.tu-ilmenau.de/ertr8623/jupyter-duckdb
|
|
6
6
|
Author: Eric Tröbs
|
|
@@ -14,7 +14,7 @@ Description-Content-Type: text/markdown
|
|
|
14
14
|
Requires-Dist: jupyter
|
|
15
15
|
Requires-Dist: graphviz==0.21
|
|
16
16
|
Requires-Dist: checkmarkandcross
|
|
17
|
-
Requires-Dist: duckdb==1.4.
|
|
17
|
+
Requires-Dist: duckdb==1.4.2
|
|
18
18
|
Dynamic: author
|
|
19
19
|
Dynamic: author-email
|
|
20
20
|
Dynamic: classifier
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
duckdb_kernel/__init__.py,sha256=6auU6zeJrsA4fxPSr2PYamS8fG-SMXTn5YQFXF2cseo,33
|
|
2
2
|
duckdb_kernel/__main__.py,sha256=Z3GwHEBWoQjNm2Y84ijnbA0Lk66L7nsFREuqhZ_ptk0,165
|
|
3
3
|
duckdb_kernel/kernel.json,sha256=_7E8Ci2FSdCvnzCjsOaue8QE8AvpS5JLQuxORO5IGtA,127
|
|
4
|
-
duckdb_kernel/kernel.py,sha256=
|
|
4
|
+
duckdb_kernel/kernel.py,sha256=xfelFfU1z_4G3eEC0znbrza9zMODE4pEf0ggt0zURsg,28653
|
|
5
5
|
duckdb_kernel/db/Column.py,sha256=GM5P6sFdlYK92hiKln5-6038gIDOTxh1AYbR4kiga_w,559
|
|
6
6
|
duckdb_kernel/db/Connection.py,sha256=tBXQBYt9c52RLbpl9sakNuAm0Z84--fhZ4efo8ACz-U,670
|
|
7
7
|
duckdb_kernel/db/Constraint.py,sha256=1YgUHk7s8mHCVedbcuJKyXDykj7_ybbwT3Dk9p2VMis,287
|
|
@@ -85,7 +85,7 @@ duckdb_kernel/tests/test_ra.py,sha256=-1SHhD99tZpO_YidW70LNHUHCEwv9-vBQs3-vg7DbR
|
|
|
85
85
|
duckdb_kernel/tests/test_result_comparison.py,sha256=TQVLPKKNyV2k3i4jCfasetPfVfCzgYZr92wxQmlzPnA,3859
|
|
86
86
|
duckdb_kernel/tests/test_sql.py,sha256=p7UEokoJs2xc-url7xQ4PmWKxtExrDDYnMeoyR1JD0A,1208
|
|
87
87
|
duckdb_kernel/util/ResultSetComparator.py,sha256=AoG4kUjMgyZRga6J4QVRUYyvDYXm1dMDa3VWpC3KYoQ,2925
|
|
88
|
-
duckdb_kernel/util/SQL.py,sha256
|
|
88
|
+
duckdb_kernel/util/SQL.py,sha256=aJRpxIKoheLrj46XG5-iwxqC89QOeJXXL6HHf2YRP6I,609
|
|
89
89
|
duckdb_kernel/util/TestError.py,sha256=iwlGHr9j6pFDa2cGxqGyvJ-exrFUtPJjVm_OhHi4n3g,97
|
|
90
90
|
duckdb_kernel/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
91
91
|
duckdb_kernel/util/formatting.py,sha256=cbt0CtERnqtzd97mLrOjeJpqM2Lo6pW96BjAYqrOTD8,793
|
|
@@ -98,7 +98,7 @@ duckdb_kernel/visualization/lib/__init__.py,sha256=tuBvJrUOO3tMKFi2JROT0RhPRZxBd
|
|
|
98
98
|
duckdb_kernel/visualization/lib/plotly-3.2.0.min.js,sha256=iZ2u_oU2wf_vDbl_ChcX93WgbBRSBvUO6N413hDz7xM,4837708
|
|
99
99
|
duckdb_kernel/visualization/lib/ra.css,sha256=foz1v69EQ117BDduB9QyHH978PbRs2TG1kBS4VGqZbI,57
|
|
100
100
|
duckdb_kernel/visualization/lib/ra.js,sha256=VzMRn55ztcd5Kfu2B6gdRPARpi8n-fvs8oNFnfp55Ec,1845
|
|
101
|
-
jupyter_duckdb-1.4.
|
|
102
|
-
jupyter_duckdb-1.4.
|
|
103
|
-
jupyter_duckdb-1.4.
|
|
104
|
-
jupyter_duckdb-1.4.
|
|
101
|
+
jupyter_duckdb-1.4.201.dist-info/METADATA,sha256=uSMOMhukXpcxCxbebnaEzYxvF7iHr0j6tqWX-UkQ5_I,9304
|
|
102
|
+
jupyter_duckdb-1.4.201.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
103
|
+
jupyter_duckdb-1.4.201.dist-info/top_level.txt,sha256=KvRRPMnmkQNuhyBsXoPmwyt26LRDp0O-0HN6u0Dm5jA,14
|
|
104
|
+
jupyter_duckdb-1.4.201.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|