View Source Endo.Adapters.Postgres (Endo v0.1.14)

Adapter module implementing the ability for Endo to reflect upon any Postgres-based Ecto Repo.

See Endo documentation for list of features.

In future, parts of Endo's top level documentation may be moved here, but as this is the only supported adapter at the time of writing, this isn't the case.

Link to this section Summary

Link to this section Functions

Link to this function

list_tables(repo, opts \\ [])

View Source
@spec list_tables(repo :: module(), opts :: Keyword.t()) :: [
  Endo.Adapters.Postgres.Table.t()
]

Callback implementation for Endo.Adapter.list_tables/2.

Link to this function

to_endo(entity, config \\ [])

View Source
@spec to_endo(Endo.Adapters.Postgres.Table.t(), Keyword.t()) :: Endo.Table.t()
@spec to_endo(Endo.Adapters.Postgres.TableConstraint.t(), Keyword.t()) ::
  Endo.Association.t()
@spec to_endo(Endo.Adapters.Postgres.Column.t(), Keyword.t()) :: Endo.Column.t()
@spec to_endo(Endo.Adapters.Postgres.Index.t(), Keyword.t()) :: Endo.Index.t()