1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-28 16:52:07 +00:00

LibSQL: Remove Core::EventReceiver parent from SQL::Relation

This relationship was only used to provide a name, factory methods, and
parent-child relationships for the relations.
This commit is contained in:
Timothy Flynn 2023-08-07 11:58:03 -04:00 committed by Tim Flynn
parent 5ad78cab8d
commit 3ea4c56d04
6 changed files with 76 additions and 51 deletions

View file

@ -12,7 +12,7 @@ namespace SQL::AST {
ResultOr<ResultSet> CreateTable::execute(ExecutionContext& context) const
{
auto schema_def = TRY(context.database->get_schema(m_schema_name));
auto table_def = TableDef::construct(schema_def, m_table_name);
auto table_def = TRY(TableDef::create(schema_def, m_table_name));
for (auto const& column : m_columns) {
SQLType type;