ladybird/Tests
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
..
AK AK: Add GenericLexer API to consume an escaped Unicode code point 2021-08-19 23:49:25 +02:00
Kernel Tests: Add coverage for sys$alarm() success case 2021-08-03 18:44:01 +02:00
LibC Tests: Fix compile errors on Clang 2021-07-14 13:12:25 +02:00
LibCompress Tests: Use ByteBuffer::create_zeroed in TestDeflate instead of memset 2021-05-27 15:18:03 +02:00
LibCore LibCore: Make Core::File::open() return OSError in case of failure 2021-08-20 15:31:46 +02:00
LibCpp Tests: Add regression tests for the LibCpp preprocessor 2021-08-14 12:40:55 +02:00
LibCrypto LibCrypto: Add tests for SignedBigInteger bitwise operations 2021-07-01 11:37:16 +02:00
LibELF Tests: Add LibELF tests 2021-05-15 11:02:04 +01:00
LibGfx LibGfx: Use "try_" prefix for static factory functions 2021-07-21 18:02:15 +02:00
LibIMAP Tests: Add tests for the quoted printable decoder 2021-07-24 20:11:28 +04:30
LibJS LibJS: Add a mode to parse JS as a module 2021-08-15 23:51:47 +01:00
LibM Tests: Add Clang pragma for turning off optimizations 2021-08-08 10:55:36 +02:00
LibPthread LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
LibRegex LibRegex: Treat pattern string characters as unsigned 2021-08-20 19:16:33 +02:00
LibSQL LibSQL+SQLServer: Bare bones INSERT and SELECT statements 2021-08-21 22:03:30 +02:00
LibThreading Tests+LibThreading: Add new tests for LibThreading for detach() 2021-07-02 17:52:45 +02:00
LibTLS Tests: Remove unused variables for clang build 2021-08-06 23:55:27 +02:00
LibUnicode LibUnicode: Handle edge-case script extensions, Common and Inherited 2021-08-11 13:11:01 +02:00
LibWasm LibCore: Make Core::File::open() return OSError in case of failure 2021-08-20 15:31:46 +02:00
LibWeb LibWeb: Avoid assertion failure on parsing numeric character references 2021-07-28 18:32:22 +02:00
UserspaceEmulator Tests: Rename write-oob 2021-07-14 11:26:34 +04:30
CMakeLists.txt Tests: Re-enable UserspaceEmulator tests on the Clang build 2021-08-14 18:42:14 +02:00