23 lines
321 B
Elixir
23 lines
321 B
Elixir
defmodule Faces.Gallery do
|
|
@moduledoc """
|
|
The Gallery context.
|
|
"""
|
|
|
|
import Ecto.Query, warn: false
|
|
alias Faces.Repo
|
|
|
|
alias Faces.Gallery.Person
|
|
|
|
@doc """
|
|
Returns the list of people.
|
|
|
|
## Examples
|
|
|
|
iex> list_people()
|
|
[%Person{}, ...]
|
|
|
|
"""
|
|
def list_people do
|
|
Repo.all(Person)
|
|
end
|
|
end
|