https://github.com/bitcrowd/bitcrowd_ecto
A collection of useful additions to ecto we use in our projects.
https://github.com/bitcrowd/bitcrowd_ecto
Last synced: 12 months ago
JSON representation
A collection of useful additions to ecto we use in our projects.
- Host: GitHub
- URL: https://github.com/bitcrowd/bitcrowd_ecto
- Owner: bitcrowd
- License: apache-2.0
- Created: 2022-01-07T10:10:58.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-06T15:05:39.000Z (over 2 years ago)
- Last Synced: 2025-06-30T12:51:57.327Z (12 months ago)
- Language: Elixir
- Size: 195 KB
- Stars: 12
- Watchers: 8
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# BitcrowdEcto
This library contains Bitcrowd's collection of tiny Ecto helpers.
* `BitcrowdEcto.Schema` is our default schema template which configures PK/FKs and timestamp types, among other things.
* `BitcrowdEcto.Repo` contains extensions for Ecto repos, like `fetch/2`.
* `BitcrowdEcto.Migrator` contains a tool for migrating from within releases.
* `BitcrowdEcto.Migration` contains functions used in migrations.
* `BitcrowdEcto.Changeset` contains mostly validators, plus the introspection-based `cast_all/3`.
- The `validate_money/3` validator is enabled when you add `ex_money` as a dependency to your project. Note that you need to recompile `bitcrowd_ecto` when you add `ex_money` later.
* `BitcrowdEcto.DateTime` contains date/time helpers.
* `BitcrowdEcto.Assertions` has an assortment of useful ExUnit assertions related to Ecto schemas.
* `BitcrowdEcto.Random` contains functions that generate random tokens.
## Steps to release
* Replace the version number in `mix.exs`
* Set version number & date in `CHANGELOG.md`
* Commit, push and open a PR for your release
* When the PR is merged:
```
git tag -a 'vX.X.X'
git push --tags
mix hex.publish
```