Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): make sqlite3 opt-in #66

Merged
merged 1 commit into from
Feb 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,15 @@ The largest difficulty with using another adapter is that there will be no
migrations to get the test repo in a useable state for testing. This is solved
by the `generate_migrations/2` macro in the `MigrationGenerator` module. The
test repo must also be created and dropped before each run of the test suite to
allow the generated migrations to run from a blank state. This can all be
accomplished in the `test/test_helper.exs` file as follows:
allow the generated migrations to run from a blank state.

Install `ecto_sqlite3` in `mix.exs`:

```elixir
{:ecto_sqlite3, "~> 0.8", only: [:test]},
```

And update `test/test_helper.exs` file as follows:

```elixir
require Snowflex.MigrationGenerator
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule Snowflex.MixProject do
{:dialyxir, "~> 1.0", only: :dev, runtime: false},
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:meck, "~> 0.9", only: :test},
{:ecto_sqlite3, "~> 0.8.2"}
{:ecto_sqlite3, "~> 0.8.2", only: [:dev, :test]}
]
end

Expand Down