Mutiny.Adapter behaviour (mutiny v0.1.0) View Source

Defines a behaviour that database adapters should adhere to.

Callbacks should return arbitrary SQL suitable for execution as part of an Ecto migration.

Link to this section Summary

Link to this section Types

Specs

columns() :: atom() | String.t() | [atom()] | [String.t()]

Specs

opts() :: [{:nullable, boolean()}]

Link to this section Callbacks

Link to this callback

create_prevent_update_function()

View Source

Specs

create_prevent_update_function() :: String.t()
Link to this callback

drop_prevent_update_function()

View Source

Specs

drop_prevent_update_function() :: String.t()

Specs

protect(table :: Ecto.Migration.Table.t()) :: String.t()
Link to this callback

protect(table, columns, opts)

View Source

Specs

protect(table :: Ecto.Migration.Table.t(), columns(), opts()) :: String.t()