View Source FatEcto.FatContext (FatEcto v1.0.0)
Provides a set of utility functions to simplify common Ecto operations such as querying, creating, updating, and deleting records.
This module is designed to be used within a context module to provide a consistent and easy-to-use API for interacting with your database.
Usage
defmodule MyApp.UserContext do
use FatEcto.FatContext, repo: MyApp.Repo
# Custom functions can be added here
end
Now you can use the functions provided by FatEcto.FatContext
within MyApp.UserContext
.