https://github.com/christophevg/ddl-parser
A DDL parser providing an Object-Oriented, Queryable (read: Linq) interface
https://github.com/christophevg/ddl-parser
ddl-parser
Last synced: 9 months ago
JSON representation
A DDL parser providing an Object-Oriented, Queryable (read: Linq) interface
- Host: GitHub
- URL: https://github.com/christophevg/ddl-parser
- Owner: christophevg
- Archived: true
- Created: 2017-01-05T19:43:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-17T10:43:06.000Z (over 9 years ago)
- Last Synced: 2025-01-31T06:31:44.264Z (over 1 year ago)
- Topics: ddl-parser
- Language: C#
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DDL Parser
A DDL parser providing an Object-Oriented, Queryable (read: Linq) interface
Christophe VG ()
[https://github.com/christophevg/DDL-Parser](https://github.com/christophevg/DDL-Parser)
## Disclaimer
This project doesn't aim to be feature complete. Although it would like to be generic, it also currently specific DB2 constructs.
## Notes
A DDL basically consists of two types of "statements": comments and actual
statements. The former is identified by a double leading dash (--), the
latter are separated using semi-colons (;).
The DDL parser starts of by checking if its current input starts with a double
dash, if so, the remainder of the line, up to a new-line character (optional
carriage returns are discarded anyway), is wrapped in a Comment object. If it
is a statement, everything up to the next semi-colon is further parsed as a Statement.