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

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.

Summary

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.

@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()

Callback implementation for Endo.Adapter.to_endo/2.