(ToSqlOptions options)
| 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(); |