MavuSnippets.MysqlTypes.JsonArray (MavuSnippets v0.1.13) View Source

Link to this section Summary

Functions

Callback implementation for Ecto.Type.cast/1.

Callback implementation for Ecto.Type.dump/1.

Callback implementation for Ecto.Type.embed_as/1.

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

Callback implementation for Ecto.Type.load/1.

  • type should output the name of the DB type
  • cast should receive any type and output your custom Ecto type (=list)
  • load should receive the DB type and output your custom Ecto type
  • dump should receive your custom Ecto type and output the DB type

Link to this section Functions

Callback implementation for Ecto.Type.cast/1.

Callback implementation for Ecto.Type.dump/1.

Callback implementation for Ecto.Type.embed_as/1.

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

Callback implementation for Ecto.Type.load/1.

  • type should output the name of the DB type
  • cast should receive any type and output your custom Ecto type (=list)
  • load should receive the DB type and output your custom Ecto type
  • dump should receive your custom Ecto type and output the DB type