CLCodeLab Edu
Playground

DBLab: a SQLite database lab in your browser.

Run SQL queries, inspect every clause with the Query Stepper, and explore the live schema tree and ER diagram. Pick one of 6 databases or 25 ready presets. SQLite runs in WebAssembly on your computer: nothing is sent to a server.

A limited playground. Here there are no auto-graded SQL quiz questions, no button in the editor and no server-side PHP check of the grade. For all the features, try the DBLab demo course in Moodle: log in as a guest, or as teacher or student with the password Demo-2026.

Loading SQLite WebAssembly...

Try this

  1. Press Run SQL (or Ctrl+Enter) to run the query, or press Step to inspect FROM, WHERE, GROUP BY and ORDER BY one stage at a time.
  2. Click ER diagram to open the live Crow's Foot / Chen diagram of the current database.
  3. Pick a preset from Presets... or switch between School, Library, Online Store, Company/HR, Movies and Hospital.

Experiment freely

Write INSERT, UPDATE, DELETE, CREATE TABLE or ALTER TABLE: the schema sidebar and ER diagram update immediately. Click any table or column name on the left to insert it at the cursor, or press Reset DB to restore the initial data.

In your Moodle

The same sandbox is the DBLab plugins for Moodle: a button in TinyMCE, interactive SQLite labs in pages, and auto-graded SQL quiz questions verified on the server. About the plugins · Demo course · Source (GPL v3)