MCPcopy Create free account
hub / github.com/Nemo1870/sql-parse / parse

Method parse

src/main/java/com/sql/parse/statement/Delete.java:55–75  ·  view source on GitHub ↗

@title: parse @desc Delete解析器

(String sql)

Source from the content-addressed store, hash-verified

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}

Callers 15

testParseMethod · 0.95
testDeleteWithWhereMethod · 0.95
testDeleteWithAndMethod · 0.95
testDeleteWithOrMethod · 0.95
testParseMethod · 0.95
testDeleteWithWhereMethod · 0.95
testDeleteWithAndMethod · 0.95
testDeleteWithOrMethod · 0.95
testParseMethod · 0.95
testDeleteWithWhereMethod · 0.95
testDeleteWithAndMethod · 0.95
testDeleteWithOrMethod · 0.95

Calls 2

getHandleMethod · 0.95
errorCodeMethod · 0.95

Tested by 15

testParseMethod · 0.76
testDeleteWithWhereMethod · 0.76
testDeleteWithAndMethod · 0.76
testDeleteWithOrMethod · 0.76
testParseMethod · 0.76
testDeleteWithWhereMethod · 0.76
testDeleteWithAndMethod · 0.76
testDeleteWithOrMethod · 0.76
testParseMethod · 0.76
testDeleteWithWhereMethod · 0.76
testDeleteWithAndMethod · 0.76
testDeleteWithOrMethod · 0.76