-
1. Re: Documenting DDL based VDB
rareddy May 4, 2018 9:41 AM (in response to gadeyne.bram)I believe currently the DDL parser is ignoring the comments, but something like that is possible. Maybe a contribution? I do not know of any IDE for DDL that Teiid team developed.
-
2. Re: Documenting DDL based VDB
shawkins May 11, 2018 8:18 AM (in response to rareddy)There are a couple of approaches here. The first is that a description field is built into the metadata record. You can set the annotation option - ... options (annotation 'something descriptive') - and it will be part of the actual metadata. Documentation could easily then be generated from the system schema - without the need to do parsing. The other approach as you have shown above is comment based, that would cut down on the amount of runtime information but would require some kind of parsing support which would be difficult as the javacc grammar file doesn't lend itself to extensions very easily. It would likely take a whole change to allow for a customization of comment handling - but that would likely be at the token level.