I was going through the comments at the top and discovered that strings were a major hotsport for creating SQL. Therefore, I decided to continue looking through the source and realized... wait... there's still spots to optimize. I froze the constants to give it an ever so minor perf boost (fingers crossed) and made sure that some of the existing constants were used.
Also added a new one for ' AS ', 'UNBOUNDED', and ' ESCAPED ' and would love to add more; this way we could also have a laundry list of text that we use :D
Parenthesis are also widely used and they can also be moved to the constants. The only problem is that some of the require a space before/after and some of the shouldn't. I'm think this should also get tacked on to this PR:
I was going through the comments at the top and discovered that strings were a major hotsport for creating SQL. Therefore, I decided to continue looking through the source and realized... wait... there's still spots to optimize. I froze the constants to give it an ever so minor perf boost (fingers crossed) and made sure that some of the existing constants were used.
Also added a new one for
' AS '
,'UNBOUNDED'
, and' ESCAPED '
and would love to add more; this way we could also have a laundry list of text that we use :DParenthesis are also widely used and they can also be moved to the constants. The only problem is that some of the require a space before/after and some of the shouldn't. I'm think this should also get tacked on to this PR: