View Source AshSqlite.ManualRelationship behaviour (ash_sqlite v0.2.1)

A behavior for sqlite-specific manual relationship functionality

Summary

Callbacks

Link to this callback

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

View Source
@callback ash_sqlite_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_sqlite_subquery(opts, current_binding, destination_binding, destination_query)

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