grimoire v0.0.2 Grimoire.Diff.Joins

Link to this section Summary

Functions

return kw list of all joins in module.

return kw list of all joins in relevant to a table.

return list of all stale joins that have been altered.

return list of all joins to be dropped.

return list of all new joins to be added.

return list of all joins that have not been created or dropped.

Link to this section Functions

Link to this function

get_all_joins_in_module(module)

return kw list of all joins in module.

Examples

iex> import Grimoire.Diff.Joins
iex> get_all_joins_in_module(Init)
[:dog_owner, :user_role]
Link to this function

get_changed_joins(prev_module, curr_module)

return list of all stale joins that have been altered.

Examples

iex> import Grimoire.Diff.Joins
iex> get_changed_joins(Third, Fourth)
[:dog_owner]
Link to this function

get_deleted_joins(prev_module, curr_module)

return list of all joins to be dropped.

Examples

iex> import Grimoire.Diff.Joins
iex> get_deleted_joins(Init, Sec)
[:dog_owner]
Link to this function

get_new_joins(prev_module, curr_module)

return list of all new joins to be added.

Examples

iex> import Grimoire.Diff.Joins
iex> get_new_joins(Sec, Third)
[:dog_owner]
Link to this function

get_stale_joins(prev_module, curr_module)

return list of all joins that have not been created or dropped.

Examples

iex> import Grimoire.Diff.Joins
iex> get_stale_joins(Sec, Third)
[:user_role]