MiniCTRMSearch

MiniCTRM - Build Tutorial 514: Choosing the database: SQLite first, PostgreSQL later; migrations only

→ to begin · N for the speaker notes

On a phone: Next or a swipe left to begin, Notes for the words.

What you'll learn

SQLite behind the back end with a migration tool, a first migration that creates a settings table and a currency table, a repository and an endpoint that list the currencies, a test, and the path to PostgreSQL written down.

  • Tables, files and servers – What a database is, why one file first, and why its structure changes only by migration.
  • The choices, side by side – SQLite, PostgreSQL and SQL Server; the migration tool for your language; Claude's recommendation.
  • The first table, end to end – Migration 1, a repository, an endpoint and a test.
  • The path to PostgreSQL – What the move will take, written down, and the commit.

Before you start

The lessons this one builds on: 512 Choosing the language: Java, Python or .NET.

Copyright 2026-2027 Brian Shydlo. MiniCTRM is source-available under the PolyForm Strict License 1.0.0 (https://polyformproject.org/licenses/strict/1.0.0): free for learning and other noncommercial use; no changes and no redistribution; commercial use needs permission.

Welcome

Somewhere to keep the trades

1 / 12
Somewhere to keep the trades
Tables, files and servers

What a database is, and why one file first

2 / 12
What a database is, and why one file first
Tables, files and servers

Migrations, never guessing

3 / 12
Migrations, never guessing
The choices, side by side

The choices, side by side

4 / 12
The choices, side by side
The choices, side by side

The migration tools

5 / 12
The migration tools
The choices, side by side

Ask Claude for its recommendation

6 / 12
Ask Claude for its recommendation
The first table, end to end

The first migration

7 / 12
The first migration
The first table, end to end

A repository and an endpoint

8 / 12
A repository and an endpoint
The path to PostgreSQL

The path to PostgreSQL, written down

9 / 12
The path to PostgreSQL, written down
The path to PostgreSQL

Commit

10 / 12
Commit
What you have now

How MiniCTRM did it

11 / 12
How MiniCTRM did it
What you have now

What you have now

12 / 12
What you have now

You have finished lesson 514, Choosing the database: SQLite first, PostgreSQL later; migrations only.

Where next?

← → move · N notes · Home / End