View Source AshPostgres.ManualRelationship behaviour (ash_postgres v2.0.5)

A behavior for postgres-specific manual relationship functionality

Summary

Callbacks

Link to this callback

ash_postgres_join( source_query, opts, current_binding, destination_binding, type, destination_query )

View Source
@callback ash_postgres_join(
  source_query :: Ecto.Query.t(),
  opts :: Keyword.t(),
  current_binding :: term(),
  destination_binding :: term(),
  type :: :inner | :left,
  destination_query :: Ecto.Query.t()
) :: {:ok, Ecto.Query.t()} | {:error, term()}
Link to this callback

ash_postgres_subquery(opts, current_binding, destination_binding, destination_query)

View Source
@callback ash_postgres_subquery(
  opts :: Keyword.t(),
  current_binding :: term(),
  destination_binding :: term(),
  destination_query :: Ecto.Query.t()
) :: {:ok, Ecto.Query.t()} | {:error, term()}