Carbonite.Migrations (Carbonite v0.1.0) View Source
Functions to setup Carbonite transaction logs in your migrations.
Link to this section Summary
Functions
Alters a triggers configuration for a given table.
Removes a Carbonite transaction log from the database.
Removes a change capture trigger from a table.
Installs a Carbonite transaction log.
Installs a change capture trigger on a table.
Link to this section Types
Link to this section Functions
Specs
configure_trigger(table_name(), [trigger_option() | trigger_config_option()]) :: :ok
Alters a triggers configuration for a given table.
Options
table_prefixis the name of the schema the table lives incarbonite_prefixis the schema of the transaction log, defaults to"carbonite_default"excluded_columnsis a list of columns to exclude from change captures
Specs
drop_schema([carbonite_option()]) :: :ok
Removes a Carbonite transaction log from the database.
Options
prefixdefines the transaction log's schema, defaults to"carbonite_default"
Specs
drop_trigger(table_name(), [trigger_option()]) :: :ok
Removes a change capture trigger from a table.
Options
table_prefixis the name of the schema the table lives incarbonite_prefixis the schema of the transaction log, defaults to"carbonite_default"
Specs
install_schema([carbonite_option()]) :: :ok
Installs a Carbonite transaction log.
Options
prefixdefines the transaction log's schema, defaults to"carbonite_default"
Specs
install_trigger(table_name(), [trigger_option() | trigger_config_option()]) :: :ok
Installs a change capture trigger on a table.
Options
table_prefixis the name of the schema the table lives incarbonite_prefixis the schema of the transaction log, defaults to"carbonite_default"excluded_columnsis a list of columns to exclude from change captures