ladybird/Userland
Jan de Visser d074a601df LibSQL+SQLServer: Bare bones INSERT and SELECT statements
This patch provides very basic, bare bones implementations of the
INSERT and SELECT statements. They are *very* limited:
- The only variant of the INSERT statement that currently works is
   SELECT INTO schema.table (column1, column2, ....) VALUES
      (value11, value21, ...), (value12, value22, ...), ...
   where the values are literals.
- The SELECT statement is even more limited, and is only provided to
  allow verification of the INSERT statement. The only form implemented
  is: SELECT * FROM schema.table

These statements required a bit of change in the Statement::execute
API. Originally execute only received a Database object as parameter.
This is not enough; we now pass an ExecutionContext object which
contains the Database, the current result set, and the last Tuple read
from the database. This object will undoubtedly evolve over time.

This API change dragged SQLServer::SQLStatement into the patch.

Another API addition is Expression::evaluate. This method is,
unsurprisingly, used to evaluate expressions, like the values in the
INSERT statement.

Finally, a new test file is added: TestSqlStatementExecution, which
tests the currently implemented statements. As the number and flavour of
implemented statements grows, this test file will probably have to be
restructured.
2021-08-21 22:03:30 +02:00
..
Applets Userland+LibGUI: Add shorthand versions of the Margins constructor 2021-08-18 10:30:50 +02:00
Applications LibCore: Make Core::File::open() return OSError in case of failure 2021-08-20 15:31:46 +02:00
Demos WidgetGallery: Remove menubar 2021-08-20 01:27:39 +02:00
DevTools HackStudio: Fix ds => fs typo in fs changed check in RegistersModel 2021-08-21 08:41:27 +02:00
DynamicLoader LibC+DynamicLoader: Prevent GCC from removing null checks 2021-08-12 21:10:44 +02:00
Games FlappyBug: Flap less aggressively 2021-08-21 00:25:43 +02:00
Libraries LibSQL+SQLServer: Bare bones INSERT and SELECT statements 2021-08-21 22:03:30 +02:00
Services LibSQL+SQLServer: Bare bones INSERT and SELECT statements 2021-08-21 22:03:30 +02:00
Shell AK: Move FormatParser definition from header to implementation file 2021-08-19 23:49:25 +02:00
Utilities AK: Move FormatParser definition from header to implementation file 2021-08-19 23:49:25 +02:00
CMakeLists.txt