A normalized searchable field.
Field specs accepted by Decant.dynamic/2:
{binding, column}— matchcolumnon the named bindingbinding.{binding, column, opts}— with per-fieldopts::cast—:stringwraps the column inCAST(? AS TEXT).:match—:contains | :prefix | :suffix | :exact, overriding the call-wide:matchfor this field only.
binding is the atom passed to as: in the host query. column is the
schema field atom.
Summary
Functions
Normalize a user field spec into a %Decant.Field{}.