grimoire v0.0.2 Grimoire.Diff.Columns
Link to this section Summary
Functions
return kw list of all columns in module.
return kw list of all columns in module.
return kw list of all stale columns that have been altered.
return kw list of all columns to be dropped.
return kw list of all columns to be added.
return kw list of all columns that have not been created or dropped.
Link to this section Functions
Link to this function
column_value(module, arg)
Link to this function
get_all_columns_in_module(module)
return kw list of all columns in module.
Examples
iex> import Grimoire.Diff.Columns
iex> get_all_columns_in_module(Sec)
[{:users, :name}, {:dogs, :owner}, {:dogs, :barks}]
Link to this function
get_all_columns_in_table(module, tablename)
return kw list of all columns in module.
Examples
iex> import Grimoire.Diff.Columns
iex> get_all_columns_in_table(Sec, :dogs)
[:barks, :owner]
Link to this function
get_changed_columns(prev_module, curr_module)
return kw list of all stale columns that have been altered.
Examples
iex> import Grimoire.Diff.Columns
iex> get_changed_columns(Third, Fourth)
[{:dogs, :barks}]
Link to this function
get_deleted_columns(prev_module, curr_module)
return kw list of all columns to be dropped.
Examples
iex> import Grimoire.Diff.Columns
iex> get_deleted_columns(Init, Sec)
[]
iex> get_deleted_columns(Init, Third)
[{:users, :name}]
Link to this function
get_new_columns(prev_module, curr_module)
return kw list of all columns to be added.
Examples
iex> import Grimoire.Diff.Columns
iex> get_new_columns(Init, Sec)
[{:dogs, :barks}, {:dogs, :owner}]
Link to this function
get_stale_columns(prev_module, curr_module)
return kw list of all columns that have not been created or dropped.
Examples
iex> import Grimoire.Diff.Columns
iex> get_stale_columns(Sec, Third)
[dogs: :barks, dogs: :owner]