Exposing Generator Visitor
Could we consider exposing the generator visitor classes as public classes to allow people to fine tune generation. This would make it so if someone really desires they can generate something using a certain format and we don't need to have an extremely extensive list of generator options to choose from
I am in particular need of this feature and can try implementing it. My use case is canonical 'pretty print' of SQL code, and, specifically, following collation-based rule (CI/CS, AI/AS) for identifier handling, so that I can e.g. lower-case all identifiers when a CI collation applies. I can see several alternatives:
- Expose the generator visitor classes as public and allow overriding methods
- Expose the
ScriptWriterand allow overriding its methods - Add an enum
IdentifierCasingsetting allowingPreserveOriginal,LowerCase,UpperCaseoptions
This issues seems to be a superset of #42