public static SQLParser newInstance ( final DatabaseType dbType , final EncryptRule encryptRule , final ShardingTableMetaData shardingTableMetaData , final String sql ) { if ( DatabaseType . MySQL == dbType || DatabaseType . H2 == dbType ) { return new AntlrParsingEngine ( dbType , sql , encryptRule , shardingTableMetaData ) ; } throw new SQLParsingUnsupportedException ( String . format ( "Can not support %s" , dbType ) ) ; }
Create Encrypt SQL parser .