mirror of
https://github.com/RGBCube/serenity
synced 2026-01-13 00:41:00 +00:00
Database::get_table currently either returns a RefPtr to an existing table, a nullptr if the table doesn't exist, or an Error if some internal error occured. Change this to return a NonnullRefPtr to an exisiting table, or a SQL::Result with any error, including if the table 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. |
||
|---|---|---|
| .. | ||
| AST.h | ||
| CreateSchema.cpp | ||
| CreateTable.cpp | ||
| Describe.cpp | ||
| Expression.cpp | ||
| Insert.cpp | ||
| Lexer.cpp | ||
| Lexer.h | ||
| Parser.cpp | ||
| Parser.h | ||
| Select.cpp | ||
| Statement.cpp | ||
| SyntaxHighlighter.cpp | ||
| SyntaxHighlighter.h | ||
| Token.cpp | ||
| Token.h | ||