PicoMite SQL test - 24 November 2026
====================================

The SQL command and the SQL( function on the PicoMite, as on the Colour
Maximite 2: SQLite as a module that SQL OPEN loads, the same commands, so a
program runs on either. For the PicoMitePC3 and the PicoMiteHDMIUSB (with
PSRAM enabled). The firmware is V8.00.00b2 with SQL and an exact FORMAT$
added; MM.VER still reads 8.000002.

firmware/
  PicoMitePC3_V8.00.00b2_SQL_test.uf2      the PicoComputer 3 (tested)
  PicoMiteHDMIUSB_V8.00.00b2_SQL_test.uf2  PicoMiteHDMIUSB with PSRAM (built,
                                           not yet run on a board)
sql/
  sql.mod              SQLite: the module SQL OPEN loads
  sql.app              SQLite as a loadable program, a statement at a time:
                       RUN "B:/sql/sql.app", "B:/sql/computers.db SELECT * FROM computer"
  computers.db         the sample database, and the example that uses it
  computers.bas
  SQL_Databases.pdf    the guide to the SQL command and SQL(
mmsql/
  mmsql_pm.bas         mmsql 1.2 with the few lines the PicoMite needs changed
  mmsql_pm_changes.txt what was changed and why, with the diff
  mmsql_en.hlp         mmsql 1.2's help files, unchanged
  mmsql_de.hlp

Installing
----------
1. PicoMitePC3 only: its flash region has moved up 16 KB to make room for
   SQL, so at the first boot of this firmware its options go back to their
   defaults and its flash slots and program memory are cleared (the A:
   drive is kept). Save the options first with
       OPTION DISK SAVE "A:/myoptions.opt"
   and load them again afterwards with
       OPTION DISK LOAD "A:/myoptions.opt"
   The PicoMiteHDMIUSB keeps everything.
2. Flash the .uf2.
3. Copy the sql folder to the SD card, as B:/sql (sql.mod can also go in
   A:/sql: SQL OPEN looks there first). A database must be on B: or C:
   (a USB drive): A:, the flash, is refused.
4. RUN "B:/sql/computers.bas"

mmsql and its test suite
------------------------
1. Copy the files in the mmsql folder, and the test suite from
   mmsql_testsuite.zip (mt_prep.bas, mt_1.sql, mt_2.sql, mt_run.txt), into
   B:/sql.
2. DRIVE "B:" : CHDIR "sql"
3. RUN "mt_prep"
4. RUN "mmsql_pm", then paste mt_run.txt as the README says, or type its
   lines one at a time.
On a PicoComputer 3: part 1 24 of 24, part 2 27 of 27, fail 0.

Notes
-----
- SQL(SELECT, with a string joined with + among its arguments, returned the
  joined string instead of the row count. Fixed here, and in the CMM2's next
  firmware.
- A TYPE member cannot be called CPU on the PicoMite (a line in a TYPE that
  starts with CPU is the CPU command), so the sample's column is now
  PROCESSOR. The CMM2's sample has the same change.
