1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:37:46 +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:
Timothy Flynn 2022-02-09 15:55:12 -05:00 committed by Linus Groh
parent f2fae3a21c
commit d9055de7ea
3 changed files with 136 additions and 0 deletions

View file

@ -22,6 +22,7 @@ class IndexDef;
class Key;
class KeyPartDef;
class Relation;
class Result;
class Row;
class SchemaDef;
class SQLResult;