Skip to content

Glossary: Software Design Patterns

Repository

Also written: repo, SqliteRepo, SQLite

An object that stores and finds things for the rest of the code, so nothing else knows how they're stored. `MemoryRepo` replaces the global `orders` list, and a `SqliteRepo` (SQLite is a small file-based database) could replace it without other changes.

Where the book teaches it

Related terms

Dependency injectionFake