liveBook · Manning

SQLite

As explained in Learn Docker in a Month of Lunches, Second Edition

SQLite is an embedded relational database engine that stores a database in a local file.

SQLite is an embedded relational database engine that stores application data in a local file. A single-container to-do app can use SQLite without running a separate database service. section 7.4

Use SQLite when:

  • The application is small and can keep its database file with the app container. section 7.4
  • Container volumes preserve and manage the database file beyond the container lifecycle. section 7.4
  • Larger applications need a separate PostgreSQL database running as another service. section 7.4

A containerized to-do app

Run the to-do application as one container and store its data in an SQLite file inside that container. Attach a volume to manage the file; later, configure the application to use a remote PostgreSQL database when the project grows. section 7.4

How Learn Docker in a Month of Lunches, Second Edition covers it

How deep it goes
Defines SQLite as a local database file and addresses volume management, but stops short of internals or query syntax.
Examples
Uses a containerized to-do app whose SQLite file is managed with a volume.
What you can do after
Operate small containerized applications with local SQLite persistence and recognize when PostgreSQL is more suitable.
How it connects
Connects SQLite with containers, Docker volumes, relational databases, and PostgreSQL.

Also explained in

Compare how 15 books explain SQLite →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Learn Docker in a Month of Lunches, Second Edition. The section links point to the parts of the book it draws on.