mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 20:59:16 +00:00
LibSQL: Add a new Result class to replace SQLResult
The existing SQLResult class predates our TRY semantics. As a result, in the AST execution methods, there is a lot of is_error checking on values that could instead be wrapped with TRY. This new class will allow such semantics, and is also stack allocated (no need to be a RefPtr). It is heavily based on LibJS's completion class.
This commit is contained in:
parent
f2fae3a21c
commit
d9055de7ea
Notes:
sideshowbarker
2024-07-18 03:35:30 +09:00
Author: https://github.com/trflynn89
Commit: d9055de7ea
Pull-request: https://github.com/SerenityOS/serenity/pull/12398
Reviewed-by: https://github.com/linusg
3 changed files with 136 additions and 0 deletions
|
@ -22,6 +22,7 @@ class IndexDef;
|
|||
class Key;
|
||||
class KeyPartDef;
|
||||
class Relation;
|
||||
class Result;
|
||||
class Row;
|
||||
class SchemaDef;
|
||||
class SQLResult;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue