mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:38:13 +00:00
LibSQL+SQLServer: Return the new Result class from statement executions
We can now TRY anything that returns a SQL::Result or an AK::Error.
This commit is contained in:
parent
d9055de7ea
commit
6620f19979
11 changed files with 337 additions and 337 deletions
|
@ -30,15 +30,15 @@ public:
|
|||
|
||||
private:
|
||||
SQLStatement(DatabaseConnection&, String sql);
|
||||
Optional<SQL::SQLError> parse();
|
||||
Optional<SQL::Result> parse();
|
||||
void next();
|
||||
void report_error(SQL::SQLError);
|
||||
void report_error();
|
||||
|
||||
int m_statement_id;
|
||||
String m_sql;
|
||||
size_t m_index { 0 };
|
||||
RefPtr<SQL::AST::Statement> m_statement { nullptr };
|
||||
RefPtr<SQL::SQLResult> m_result { nullptr };
|
||||
Optional<SQL::Result> m_result {};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue