MCPcopy Create free account
hub / github.com/apache/impala / toSql

Method toSql

fe/src/main/java/org/apache/impala/analysis/DropDbStmt.java:53–60  ·  view source on GitHub ↗
(ToSqlOptions options)

Source from the content-addressed store, hash-verified

51 public boolean getCascade() { return cascade_; }
52
53 @Override
54 public String toSql(ToSqlOptions options) {
55 StringBuilder sb = new StringBuilder("DROP DATABASE");
56 if (ifExists_) sb.append(" IF EXISTS ");
57 sb.append(getDb());
58 if (cascade_) sb.append(" CASCADE");
59 return sb.toString();
60 }
61
62 public TDropDbParams toThrift() {
63 TDropDbParams params = new TDropDbParams();

Callers

nothing calls this directly

Calls 3

getDbMethod · 0.95
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected