https://github.com/luizparreira/ecto_cast_int_to_string
DEPRECATED - USE https://github.com/luizParreira/ecto_cast_to_string
https://github.com/luizparreira/ecto_cast_int_to_string
casting ecto elixir
Last synced: 9 months ago
JSON representation
DEPRECATED - USE https://github.com/luizParreira/ecto_cast_to_string
- Host: GitHub
- URL: https://github.com/luizparreira/ecto_cast_int_to_string
- Owner: luizParreira
- License: mit
- Created: 2017-05-23T12:50:38.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-23T21:41:50.000Z (about 9 years ago)
- Last Synced: 2025-09-18T21:43:36.640Z (9 months ago)
- Topics: casting, ecto, elixir
- Language: Elixir
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EctoCastIntToString
DEPRECATED - Use https://github.com/luizParreira/ecto_cast_to_string
EctoCastIntToString is a simple library that enables ecto casting from integer to string.
## Installation
The package can be installed by adding `:ecto_cast_int_to_string` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[{:ecto_cast_int_to_string, "~> 0.1.0"}]
end
```
## Dependencies
As expected, `EctoCastIntToString` depends upon `Ecto` to work.
## Usage
Simply set the type of the column you would like to have casted to string.
```elixir
defmodule MyModel
schema "my_model" do
field :a_string, EctoCastIntToString
timestamps()
end
end
```
# License
EctoCastint is under MIT license. Check the `LICENSE` file for more details.