mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-20 17:58:18 +03:00
56843baff9
Database::get_schema currently either returns a RefPtr to an existing schema, a nullptr if the schema doesn't exist, or an Error if some internal error occured. Change this to return a NonnullRefPtr to an exisiting schema, or a SQL::Result with any error, including if the schema was not found. Callers can then handle that specific error code if they want. Returning a NonnullRefPtr will enable some further cleanup. This had some fallout of needing to change some other methods' return types from AK::ErrorOr to SQL::Result so that TRY may continue to be used. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
TestSqlBtreeIndex.cpp | ||
TestSqlDatabase.cpp | ||
TestSqlExpressionParser.cpp | ||
TestSqlHashIndex.cpp | ||
TestSqlStatementExecution.cpp | ||
TestSqlStatementParser.cpp | ||
TestSqlValueAndTuple.cpp |