View Source DbInfo.DbInfo (DbInfo v0.1.0)
Pagination based on https://snippets.aktagon.com/snippets/776-pagination-with-phoenix-and-ecto
Link to this section Summary
Functions
Get application module with route helpers.
List Ecto Schema attributes with types
List application all Ecto Schemas
Returns Ecto Schema data pagination page.
Map schema name to actual Ecto Schema
Link to this section Functions
Specs
get_router_helpers() :: Module.t()
Get application module with route helpers.
Specs
list_attributes_with_types(Ecto.Schema.schema()) :: {atom(), atom()}
List Ecto Schema attributes with types
Specs
list_schemas() :: [Ecto.Schema.schema()]
List application all Ecto Schemas
Specs
paginate(Ecto.Schema.schema(), String.t()) :: struct()
Returns Ecto Schema data pagination page.
Specs
to_schema(String.t()) :: Ecto.Schema.schema()
Map schema name to actual Ecto Schema