mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:08:11 +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:
parent
5ad78cab8d
commit
3ea4c56d04
6 changed files with 76 additions and 51 deletions
|
@ -12,7 +12,7 @@ namespace SQL::AST {
|
|||
|
||||
ResultOr<ResultSet> CreateSchema::execute(ExecutionContext& context) const
|
||||
{
|
||||
auto schema_def = SchemaDef::construct(m_schema_name);
|
||||
auto schema_def = TRY(SchemaDef::create(m_schema_name));
|
||||
|
||||
if (auto result = context.database->add_schema(*schema_def); result.is_error()) {
|
||||
if (result.error().error() != SQLErrorCode::SchemaExists || m_is_error_if_schema_exists)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue