@title: parse @desc Delete解析器
(String sql)
| 53 | * @desc Delete解析器 |
| 54 | */ |
| 55 | public static Delete parse(String sql) { |
| 56 | switch (SqlParseConfig.getHandle()) { |
| 57 | case "com.github.jsqlparser":{ |
| 58 | try { |
| 59 | return com.sql.parse.statement.impl.jsqlparser.Delete.parse(sql); |
| 60 | } catch (ClassCastException e) { |
| 61 | throw BaseException.errorCode(SqlParseConstant.CODE_020, "Delete"); |
| 62 | } |
| 63 | } |
| 64 | case "com.alibaba.druid":{ |
| 65 | try { |
| 66 | return com.sql.parse.statement.impl.druid.Delete.parse(sql); |
| 67 | } catch (ClassCastException e) { |
| 68 | throw BaseException.errorCode(SqlParseConstant.CODE_020, "Delete"); |
| 69 | } |
| 70 | } |
| 71 | default:{ |
| 72 | throw BaseException.errorCode(SqlParseConstant.CODE_018); |
| 73 | } |
| 74 | } |
| 75 | } |
| 76 | } |