1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:38:12 +00:00

LibSQL: Parse DROP TABLE statement

This commit is contained in:
Timothy Flynn 2021-04-20 10:16:28 -04:00 committed by Andreas Kling
parent 110cd98c0a
commit e92bffb2e3
4 changed files with 79 additions and 2 deletions

View file

@ -125,4 +125,23 @@ private:
bool m_is_error_if_table_exists;
};
class DropTable : public Statement {
public:
DropTable(String schema_name, String table_name, bool is_error_if_table_does_not_exist)
: m_schema_name(move(schema_name))
, m_table_name(move(table_name))
, m_is_error_if_table_does_not_exist(is_error_if_table_does_not_exist)
{
}
const String& schema_name() const { return m_schema_name; }
const String& table_name() const { return m_table_name; }
bool is_error_if_table_does_not_exist() const { return m_is_error_if_table_does_not_exist; }
private:
String m_schema_name;
String m_table_name;
bool m_is_error_if_table_does_not_exist;
};
}