Restructuring: Isn.Extension is now called Isn, which means that the postgrex
configuration line becomes a bit shorter now:
```elixir
{:ok, pid} = Postgrex.Connection.start_link(
database: "isn_test",
extensions: [{Isn, {}}])
```
instead of the previous version, with `extensions: [{Isn.Extension, {}}]`.
I also implement the entire library in the `lib/isn.ex` file, since it felt
pretty silly to have eight different one-line files under `lib/isn/` looking
like this: `defmodule Isn.ISBN, do: use(Isn.Base, :isbn)`
We now have the following types:
- ISBN
- ISBN13
- ISMN
- ISMN13
- ISSN
- ISSN13
- EAN13
- UPC
|
||
|---|---|---|
| config | ||
| lib | ||
| test | ||
| .gitignore | ||
| README.md | ||
| mix.exs | ||
| mix.lock | ||
README.md
Isn
Add support for the isn module in Postgrex/Ecto.
This module adds the following ecto types:
- Isn.ISBN
- Isn.ISBN13
- Isn.ISMN
- Isn.ISMN13
- Isn.ISSN
- Isn.ISSN13
- Isn.EAN13
- Isn.UPC