grimoire v0.0.2 Grimoire.Diff.Tables

Link to this section Summary

Functions

list tables to be dropped in the upcoming migration

list tables to be created in the upcoming migration optionally pass a module

lists tables in schema. Optionally pass a module to get tables at a different point in time

Link to this section Functions

Link to this function

get_deleted_tables(prev_module, curr_module)

list tables to be dropped in the upcoming migration

Examples

iex> import Grimoire.Diff.Tables
...> get_deleted_tables(Init, Sec)
[]
Link to this function

get_new_tables(prev_module, curr_module)

list tables to be created in the upcoming migration optionally pass a module

Examples

iex> import Grimoire.Diff.Tables
iex> get_new_tables(Init, Sec)
[:dogs]
Link to this function

get_tables(module)

lists tables in schema. Optionally pass a module to get tables at a different point in time

Examples

iex> import Grimoire.Diff.Tables
iex> get_tables(Sec)
[:dogs, :users]