https://github.com/tap349/ecto_cqs
CQS library for Ecto
https://github.com/tap349/ecto_cqs
cqs ecto elixir
Last synced: 22 days ago
JSON representation
CQS library for Ecto
- Host: GitHub
- URL: https://github.com/tap349/ecto_cqs
- Owner: tap349
- License: mit
- Created: 2019-02-03T22:42:24.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-12T09:11:59.000Z (over 5 years ago)
- Last Synced: 2025-04-02T16:15:37.965Z (6 months ago)
- Topics: cqs, ecto, elixir
- Language: Elixir
- Homepage:
- Size: 59.6 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# EctoCQS
Inspired by [Command-Query separation in Elixir](https://blog.lelonek.me/command-query-separation-in-elixir-ac742e60fc7d).
Library is fully operational and is used in several projects in production
but still everything is "subject to change without prior notice".Maybe I'll add typespecs and documentation later but for now feel free to
examine source code and tests in particular to understand how it all works.## Installation
If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `ecto_cqs` to your list of dependencies in `mix.exs`:```elixir
def deps do
[
{:ecto_cqs, "~> 0.1"}
]
end
```Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at [https://hexdocs.pm/ecto_cqs](https://hexdocs.pm/ecto_cqs).## Running tests
```sh
$ git clone https://github.com/tap349/ecto_cqs
$ cd ecto_cqs
$ mix deps.get
$ docker-compose up
$ MIX_ENV=test mix ecto.create
$ MIX_ENV=test mix ecto.migrate
$ mix test
```