Databases and persistence

The Relational Model

SQL Basics, DDL, and DML

Querying Data

Advanced Concepts

Sqlite

DBeaver

SQL Scripts

Connecting with Javascript

Appendix: Glossary of Database Terms

Resources

Practice

Assignment

Core program

Install DBeaver

While working with the command-line interface can be handy with databases, it is also nice to have your data nicely visualised and see it laid out in a nice visual manner, and be able to easily experiment with queries. This is where DBeaver comes in.

DBeaver is a free, open-source database client that lets you open a SQLite database file, browse tables, and run SQL queries — all through a clean visual interface.

Note: DBeaver Community Edition is free and is all you need for this course. If you already have DBeaver installed, you can skip straight to connecting to SQLite.

Installing on Windows

Installing on Mac


Connect DBeaver to a SQLite database file

In SQLite, your “database” is just a file on disk (often ending in .db, .sqlite, or .sqlite3).

  1. Open DBeaver.
  2. Create a new connection.
  3. Choose SQLite.
  4. Point DBeaver at your database file.
  5. Download the driver (first time only).
  6. Test Connection, then Finish.

<aside> 💡

https://www.youtube.com/watch?v=fmq6-wvbxyA

</aside>


Run queries and explore your data

Browse tables

Open the SQL editor

  1. Right-click your SQLite connection.
  2. Choose SQL Editor → Open SQL Script.
  3. Write SQL and run it (play button).

Example query:

-- Show the most recent books
SELECT
    b.title,
    b.published_year,
    a.first_name || ' ' || a.last_name AS author
FROM books b
JOIN authors a ON a.id = b.author_id
ORDER BY b.published_year DESC
LIMIT 10;

<aside> 💡

This is a basic demo of navigating the contents of the database, and opening and using the sql editor, which is where you will end up spending most of your time as you try out queries.

Screen Recording 2026-03-26 at 09.02.23.mov

</aside>


Common gotchas


The HackYourFuture curriculum is licensed under CC BY-NC-SA 4.0 *https://hackyourfuture.net/*

CC BY-NC-SA 4.0 Icons

Built with ❤️ by the HackYourFuture community · Thank you, contributors

Found a mistake or have a suggestion? Let us know in the feedback form.