gim v1.0.0 Gim.Repo View Source

Defines a repository.

A repository maps to an underlying data store hold in-memory.

When used, the repository expects the :types as option. The :types is a list of schema types to register. For example, the repository:

defmodule Repo do
  use Gim.Repo,
    types: [Author, Post]
end