EctoPgGeom.Line (ecto_pg_geom v0.1.2)
An Ecto type for lines.
May be used as a field in an Ecto.Schema for automatic use of line data stored in the database:
field :line, EctoPgGeom.LineAssigning to a line field can be done either by manually creating a %Postgrex.Line{} struct, or by
passing a {A, B, C} line definition, where Ax + By + C = 0. cast/1 and dump/1 will take care of the translation.
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.equal?/2.
Callback implementation for Ecto.Type.load/1.
Callback implementation for Ecto.Type.type/0.
Link to this section Functions
cast(value)
Callback implementation for Ecto.Type.cast/1.
dump(value)
Callback implementation for Ecto.Type.dump/1.
embed_as(format)
equal?(left, right)
Callback implementation for Ecto.Type.equal?/2.
load(data)
Callback implementation for Ecto.Type.load/1.
type()
Callback implementation for Ecto.Type.type/0.