ecto_lazy_float alternatives and similar packages
Based on the "ORM and Datamapping" category.
Alternatively, view ecto_lazy_float alternatives based on common mentions on social networks and blogs.
-
memento
Simple + Powerful interface to the Mnesia Distributed Database 💾 -
paper_trail
Track and record all the changes in your database with Ecto. Revert back to anytime in history. -
ExAudit
Ecto auditing library that transparently tracks changes and can revert them. -
ecto_psql_extras
Ecto PostgreSQL database performance insights. Locks, index usage, buffer cache hit ratios, vacuum stats and more. -
arbor
Ecto elixir adjacency list and tree traversal. Supports Ecto versions 2 and 3. -
sqlitex
An Elixir wrapper around esqlite. Allows access to sqlite3 databases. -
boltun
Transforms notifications from the Postgres LISTEN/NOTIFY mechanism into callback execution -
sql_dust
Easy. Simple. Powerful. Generate (complex) SQL queries using magical Elixir SQL dust.
Build time-series-based applications quickly and at scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ecto_lazy_float or a related project?
README
Ecto.LazyFloat
Ecto.LazyFloat - An Ecto.Float that accepts binary and integers
Find on Hex - https://hex.pm/packages/ecto_lazy_float
Installation
Add Ecto.LazyFloat as a dependency in your mix.exs
file.
defp deps do
[{:postgrex, ">= 0.0.0"},
{:ecto, "~> 0.7"},
{:ecto_lazy_float, "~> 0.1.2"}]
end
After you are done, run mix deps.get
in your shell to fetch the dependencies.
Usage
Enable LazyFloat through an Ecto model schema:
defmodule YourProject.Thing do
use Ecto.Model
schema "things" do
field :notes, :string
field :position, :integer
field :value, Ecto.LazyFloat
end
end
# With integer
valid = Ecto.Changeset.cast(%{value: 1}, %Thing{}, [], [])
Repo.insert(valid)
# With string
valid = Ecto.Changeset.cast(%{value: "1.2"}, %Thing{}, [], [])
Repo.insert(valid)
# With float
valid = Ecto.Changeset.cast(%{value: 1.2}, %Thing{}, [], [])
Repo.insert(valid)