Dymo v0.1.1 Dymo.Tagger behaviour View Source

Defines the functions required for a tagger to be compabible with the Dymo.Taggable macro.

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function join_key(module) View Source
join_key(Ecto.Schema.t() | module()) :: atom()
Link to this function join_table(module) View Source
join_table(Ecto.Schema.t() | module()) :: String.t()

Link to this section Callbacks

Link to this callback add_labels(arg0, arg1) View Source
add_labels(Ecto.Schema.t(), label() | labels()) :: Ecto.Schema.t()
Link to this callback query_labeled_with(module, arg1) View Source
query_labeled_with(module(), label() | labels()) :: Ecto.Query.t()
Link to this callback query_labeled_with(module, arg1, join_table, join_key) View Source
query_labeled_with(module(), label() | labels(), join_table(), join_key()) ::
  Ecto.Query.t()
Link to this callback query_labels(arg0) View Source
query_labels(module() | String.t() | Ecto.Schema.t()) :: Ecto.Query.t()
Link to this callback query_labels(arg0, join_table, join_key) View Source
query_labels(Ecto.Schema.t(), join_table(), join_key()) :: Ecto.Query.t()
Link to this callback remove_labels(arg0, arg1) View Source
remove_labels(Ecto.Schema.t(), label() | labels()) :: Ecto.Schema.t()
Link to this callback set_labels(arg0, arg1) View Source
set_labels(Ecto.Schema.t(), label() | labels()) :: Ecto.Schema.t()