View Source JetExt.Ecto.Varchar (jet_ext v0.2.3)

An Ecto type for PostgreSQL varchar with limit.

Options

  • :limit - the length must be less than or equal to this value (default is 255)
  • :count - what length to count for string, :graphemes (default) or :bytes

Example

field :name, JetExt.Ecto.Varchar, limit: 255

field :name, JetExt.Ecto.Varchar, limit: 255, count: :bytes

Summary

Types