FatEcto.FatContext (FatEcto v1.1.0)
View SourceProvides 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 FatEcto.FatAppContext do
use FatEcto.FatContext, repo: FatEcto.Repo
# Custom functions can be added here
end
Now you can use the functions provided by FatEcto.FatContext
within FatEcto.FatAppContext
.
Summary
Functions
Callback function that runs after the module is compiled.