Stores: Introduction

An overview of Dracory stores: what they are, why they matter, and how to use them effectively.

What Is a Store?

Stores are Go packages that encapsulate all data access logic for a particular entity or domain, following interface-driven design for modularity, testability, and reuse.

Why Use Stores?

Stores separate your business logic from data persistence, making your codebase cleaner, more maintainable, and easier to test. They also enable code sharing between projects.

How Stores Fit in the Architecture

In the MVC pattern, stores act as the Model's data access layer, providing a consistent API for controllers and services to interact with the database.

Menu