mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +00:00
LibSQL+SQLServer: Remove Core::EventReceiver parent from SQL::Database
This relationship was only used to provide factory methods for the database.
This commit is contained in:
parent
4a04438e43
commit
1151ba333a
5 changed files with 72 additions and 68 deletions
|
@ -21,7 +21,7 @@ static ErrorOr<NonnullRefPtr<SQL::Database>> find_or_create_database(StringView
|
|||
}
|
||||
|
||||
auto database_file = DeprecatedString::formatted("{}/{}.db", database_path, database_name);
|
||||
return SQL::Database::try_create(move(database_file));
|
||||
return SQL::Database::create(move(database_file));
|
||||
}
|
||||
|
||||
RefPtr<DatabaseConnection> DatabaseConnection::connection_for(SQL::ConnectionID connection_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue