Skip to content

Commit

Permalink
Release v1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dgigafox committed Jun 16, 2023
1 parent 639da6d commit dfec7fb
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
8 changes: 2 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [1.0.1-dev]

### Fixed

- Remove redundant config naming to just `config :drill, :otp_app, :my_app`
## [1.1.0] - 2023-06-16

### Added

- Allow user to set `on_conflict` strategy using optional callback `on_conflict/0`
- Require seeder files to be .exs
- Require seeder files to be .exs and remove the need to config `:otp_app`
- Allow user to set `timeout` through config. E.g. `config :drill, :timeout, :infinity`

## [1.0.0] - 2023-06-14
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ def deps do
end
```

## Configurations

### Timeout

Default timeout is 600 seconds or 10 minutes. You may configure the task timeout in your config.exs file. For example:
`config :drill, :timeout, 10_000`

## `use Drill` options

- `source` - source is the schema module
Expand Down
5 changes: 5 additions & 0 deletions lib/drill.ex
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ defmodule Drill do
end
```
## Configurations
### Timeout
Default timeout is 600 seconds or 10 minutes. You may configure the task timeout in your config.exs file e.g.:
config :drill, :timeout, 10_000
## `use Drill` options
* `source` - source is the schema module
* `key` - once the seeder module runs, the inserted result will be saved to `%Drill.Context{}.seeds[key]`.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Drill.MixProject do
def project do
[
app: :drill,
version: "0.1.1",
version: "1.1.0",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
aliases: aliases(),
Expand Down

0 comments on commit dfec7fb

Please sign in to comment.