simple-ddl-parser icon indicating copy to clipboard operation
simple-ddl-parser copied to clipboard

Add TRUNCATE

Open mmoldrup opened this issue 2 years ago • 2 comments

The parser doesn't accept TRUNCATE as a DDL-statement.

mmoldrup avatar Feb 06 '23 06:02 mmoldrup

@mmoldrup hi, truncate statements are skipped same way as 'drop' statements and just not produces any results. What result as an output you expect? something like 'truncate': {'schema': 'schema_name', 'table_name': 'table_name'}?

xnuinside avatar Mar 29 '23 17:03 xnuinside

Yes, in my case I just need to extract all affected tables. I would be able to do that, if what you suggest was included. Same goes for ‘drop’ and similar expressions.

Br, Michael

ons. 29. mar. 2023 kl. 19.59 skrev Iuliia Volkova @.***

:

@mmoldrup https://github.com/mmoldrup hi, truncate statements are skipped same way as 'drop' statements and just not produces any results. What result as an output you expect? something like 'truncate': {'schema': 'schema_name', 'table_name': 'table_name'}?

— Reply to this email directly, view it on GitHub https://github.com/xnuinside/simple-ddl-parser/issues/190#issuecomment-1489058603, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANISD5RGEASKK3T5ZF4MWNLW6R2BHANCNFSM6AAAAAAUSJTYPQ . You are receiving this because you were mentioned.Message ID: @.***>

-- Mvh./Best regards, Michael Møldrup

mmoldrup avatar Apr 02 '23 09:04 mmoldrup