isn alternatives and similar packages
Based on the "ORM and Datamapping" category.
Alternatively, view isn alternatives based on common mentions on social networks and blogs.
-
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.
Clean code begins in your IDE with SonarLint
* 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 isn or a related project?
Popular Comparisons
README
ISN
ISN adds a Postgrex.Extension
and Ecto.Type
definitions
for the datatypes defined in the isn
PostgreSQL module.
Usage
Ecto migrations
defmodule MyApp.Repo.Migrations.CreateBook do
use Ecto.Migration
def change do
create table(:books) do
add :isbn, :isbn13
# other fields
end
end
end
Ecto Models
defmodule MyApp.Book do
use MyApp.Web, :model
schema "books" do
field :isbn, ISN.ISBN13, read_after_writes: true
# other fields
end
end
Installation
Add the package to your Mixfile
defp deps do
[{:isn, "~> 2.0"}]
end
Add the isn extension to your database
mix do isn.gen.migration, ecto.migrate
In lib/ directory create a file with the following content:
Postgrex.Types.define(
MyApp.PostgrexTypes,
[ISN] ++ Ecto.Adapters.Postgres.extensions(),
json: Poison
)
Add the following lines in conig.exs:
config :my_app, MyApp.Repo,
types: MyApp.PostgrexTypes
Defined types
ISN
adds the following ecto and corresponding postgrex types:
Ecto.Type | Postgrex type |
---|---|
ISN.ISBN |
:isbn |
ISN.ISBN13 |
:isbn13 |
ISN.ISMN |
:ismn |
ISN.ISMN13 |
:ismn13 |
ISN.ISSN |
:issn |
ISN.ISSN13 |
:issn13 |
ISN.EAN13 |
:ean13 |
ISN.UPC |
:upc |