trubo_ecto v0.1.3 Trubo.Ecto.Utils
Trubo Utils Set.
Link to this section Summary
Functions
Returns queryable schema
Link to this section Functions
Link to this function
schema_from_query(queryable)
schema_from_query(Ecto.Query.t()) :: Ecto.Query.t()
Returns queryable schema.
Example
iex> Trubo.Ecto.Utils.schema_from_query(Trubo.Ecto.Product)
Trubo.Ecto.Product