tristaZero opened a new issue #2275: Reconstruct rewriting module URL: https://github.com/apache/incubator-shardingsphere/issues/2275 **Reconstruct rewriting module** The tasks of parsing module: - [x] Make all of the tokens store startIndex parameter and stopIndex parameter. - [x] Remove the invalid parameters for calculating the stopIndex. - [ ] Add different interface to distinguish the SQLTokens for startIndex and stopIndex. The tasks of rewriteEngine module: - [ ] Use startIndex and stopIndex to rewrite SQLs. - [ ] Make all of the tokens rewritten in the consistent method. - [ ] Generate placeHolders to handle ItemsToken, LimitRowCountToken and so on. - [ ] Move encrypting processing part to ShardingEncryptorEngine. - [ ] Split encryptConfiguration from ShardingEncryptorEngine, and store it in shardingRule or encryptRule. - [ ] Use pattern() to create constant placeHolders, variant placeHolders, original literal from SQLTokens. - [ ] Add interface for variant placeHolders to toString(parameters). - [ ] Use pattern() to make constant placeHolders become literals, and create SQLBuilder to store placeHolder-literals, variant placeHolders and original literals. - [ ] Use generateSQL() to generate SQLUnit. The tasks of SQLBuilder module: - [ ] Store variant placeHolders and placeHolder-literals and original literals. - [ ] Use toSQL() to generate SQLUnit. The tasks of documents: - [ ] Draw the workflow of rewriting engine. - [ ] Update the official document.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
