Keksdose.Types.StringList (keksdose v0.4.1)

Copy Markdown View Source

Ecto type storing a non-empty list of strings as JSON.

Used for categories so the same schema works across PostgreSQL (stored as jsonb), MySQL (json), and SQLite (text). The migration generator emits the adapter-appropriate column type.

Summary

Functions

Callback implementation for Ecto.Type.embed_as/1.

Callback implementation for Ecto.Type.equal?/2.

Functions

embed_as(_)

Callback implementation for Ecto.Type.embed_as/1.

equal?(term1, term2)

Callback implementation for Ecto.Type.equal?/2.