You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+42-2Lines changed: 42 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,21 @@ However, in process of adding support for new statements & features I see that o
14
14
15
15
16
16
### How does it work?
17
-
Parser tested on different DDLs mostly for PostgreSQL & Hive. But idea to support as much as possible DDL dialects (AWS Redshift, Oracle, Hive, MsSQL, BigQuery etc.). You can check dialects sections after `Supported Statements` section to get more information that statements from dialects already supported by parser.
17
+
18
+
Parser supports:
19
+
20
+
- SQL
21
+
- HQL (Hive)
22
+
- MSSQL dialec
23
+
- Oracle dialect
24
+
- MySQL dialect
25
+
- PostgreSQL dialect
26
+
- BigQuery
27
+
- Redshift
28
+
- Snowflake
29
+
- SparkSQL
30
+
31
+
You can check dialects sections after `Supported Statements` section to get more information that statements from dialects already supported by parser. If you need to add more statements or new dialects - feel free to open the issue.
18
32
19
33
### Feel free to open Issue with DDL sample
20
34
**If you need some statement, that not supported by parser yet**: please provide DDL example & information about that is it SQL dialect or DB.
@@ -170,6 +184,26 @@ You can provide target path where you want to dump result with argument **-t**,
@@ -297,7 +331,7 @@ In output you will have names like 'dbo' and 'TO_Requests', not '[dbo]' and '[TO
297
331
298
332
- STATEMENTS: PRIMARY KEY, CHECK, FOREIGN KEY in table defenitions (in create table();)
299
333
300
-
- ALTER TABLE STATEMENTS: ADD CHECK (with CONSTRAINT), ADD FOREIGN KEY (with CONSTRAINT), ADD UNIQUE, ADD DEFAULT FOR, ALTER TABLE ONLY, ALTER TABLE IF EXISTS
334
+
- ALTER TABLE STATEMENTS: ADD CHECK (with CONSTRAINT), ADD FOREIGN KEY (with CONSTRAINT), ADD UNIQUE, ADD DEFAULT FOR, ALTER TABLE ONLY, ALTER TABLE IF EXISTS; ALTER .. PRIMARY KEY; ALTER .. USING INDEX TABLESPACE
301
335
302
336
- PARTITION BY statement
303
337
@@ -319,6 +353,11 @@ In output you will have names like 'dbo' and 'TO_Requests', not '[dbo]' and '[TO
319
353
320
354
- CREATE DATABASE + Properties parsing
321
355
356
+
### SparkSQL Dialect statements
357
+
358
+
- USING
359
+
360
+
322
361
### HQL Dialect statements
323
362
324
363
- PARTITIONED BY statement
@@ -385,6 +424,7 @@ In output you will have names like 'dbo' and 'TO_Requests', not '[dbo]' and '[TO
385
424
386
425
### TODO in next Releases (if you don't see feature that you need - open the issue)
387
426
427
+
-1. Update command line to parse all arguments, that supported by Parser
388
428
0. Add support for ALTER TABLE ... ADD COLUMN
389
429
1. Add more support for CREATE type IS TABLE (example: CREATE OR REPLACE TYPE budget_tbl_typ IS TABLE OF NUMBER(8,2);
390
430
2. Add support (ignore correctly) ALTER TABLE ... DROP CONSTRAINT ..., ALTER TABLE ... DROP INDEX ...
Copy file name to clipboardExpand all lines: pyproject.toml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
[tool.poetry]
2
2
name = "simple-ddl-parser"
3
-
version = "0.25.0"
3
+
version = "0.26.0"
4
4
description = "Simple DDL Parser to parse SQL & dialects like HQL, TSQL (MSSQL), Oracle, AWS Redshift, Snowflake, MySQL, PostgreSQL, etc ddl files to json/python dict with full information about columns: types, defaults, primary keys, etc.; sequences, alters, custom types & other entities from ddl."
0 commit comments