Bylaw.Ecto.Changeset.ConstraintCall (bylaw_postgres v0.1.0-alpha.1)

Copy Markdown View Source

A direct Ecto changeset constraint helper call.

Summary

Types

kind()

@type kind() :: :unique | :foreign_key | :check | :exclusion

match()

@type match() :: :exact | :suffix | :prefix

t()

@type t() :: %Bylaw.Ecto.Changeset.ConstraintCall{
  fields: [atom()],
  kind: kind(),
  match: match(),
  name: String.t() | Regex.t() | nil
}