Skip to content
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
24 changes: 24 additions & 0 deletions .github/workflows/elixir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ jobs:
otp: ["23", "22"]
elixir: ["1.10.0"]
ash: ["master", "1.12", "1.13"]
pg_version: ["9.5", "9.6", "11"]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ASH_VERSION: ${{matrix.ash}}
services:
pg:
image: postgres:${{ matrix.pg_version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports: ["5432:5432"]
steps:
- run: sudo apt-get install --yes erlang-dev
- uses: actions/checkout@v2
Expand All @@ -41,6 +51,8 @@ jobs:
key: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-build-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-build-2
- run: mix deps.get
- run: MIX_ENV=test mix ecto.create
- run: MIX_ENV=test mix ecto.migrate
- run: mix check --except dialyzer
if: startsWith(github.ref, 'refs/tags/v')
- run: mix check
Expand All @@ -53,8 +65,18 @@ jobs:
matrix:
otp: ["23"]
elixir: ["1.10.0"]
pg_version: ["11"]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
services:
pg:
image: postgres:${{ matrix.pg_version }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports: ["5432:5432"]
steps:
- run: sudo apt-get install --yes erlang-dev
- uses: actions/checkout@v2
Expand All @@ -69,6 +91,8 @@ jobs:
key: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-${{ hashFiles(format('{0}{1}', github.workspace, '/mix.lock')) }}
restore-keys: otp-${{matrix.otp}}-elixir-${{matrix.elixir}}-deps-2-
- run: mix deps.get
- run: MIX_ENV=test mix ecto.create
- run: MIX_ENV=test mix ecto.migrate
- run: mix coveralls.github
release:
runs-on: ubuntu-latest
Expand Down
148 changes: 36 additions & 112 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,249 +7,173 @@ See [Conventional Commits](Https://conventionalcommits.org) for commit guideline

## [v0.19.0](https://github.com/ash-project/ash_postgres/compare/v0.18.0...v0.19.0) (2020-09-02)




### Features:

* support inner joins when possible (#15)
- support inner joins when possible (#15)

### Bug Fixes:

* better support for aggregates/calculations when delegating
- better support for aggregates/calculations when delegating

* don't fail w/ no extensions configured
- don't fail w/ no extensions configured

## [v0.18.0](https://github.com/ash-project/ash_postgres/compare/v0.17.0...v0.18.0) (2020-08-26)




### Features:

* update to ash 1.11 (#13)
- update to ash 1.11 (#13)

* support Ash v1.10 (#12)
- support Ash v1.10 (#12)

* support latest ash
- support latest ash

* update to latest ash
- update to latest ash

## [v0.17.0](https://github.com/ash-project/ash_postgres/compare/v0.16.1...v0.17.0) (2020-08-26)




### Features:

* update to ash 1.11 (#13)
- update to ash 1.11 (#13)

* support Ash v1.10 (#12)
- support Ash v1.10 (#12)

* support latest ash
- support latest ash

* update to latest ash
- update to latest ash

## [v0.16.1](https://github.com/ash-project/ash_postgres/compare/v0.16.0...v0.16.1) (2020-08-19)




### Bug Fixes:

* fix compile/dialyzer issues
- fix compile/dialyzer issues

## [v0.16.0](https://github.com/ash-project/ash_postgres/compare/v0.15.0...v0.16.0) (2020-08-19)




### Features:

* update to latest ash
- update to latest ash

* update to latest version of ash
- update to latest version of ash

## [v0.15.0](https://github.com/ash-project/ash_postgres/compare/v0.14.0...v0.15.0) (2020-08-18)




### Features:

* update to latest version of ash
- update to latest version of ash

## [v0.14.0](https://github.com/ash-project/ash_postgres/compare/v0.13.0...v0.14.0) (2020-08-17)




### Features:

* support ash 1.7
- support ash 1.7

* support named aggregates
- support named aggregates

## [v0.13.0](https://github.com/ash-project/ash_postgres/compare/v0.12.1...v0.13.0) (2020-07-25)




### Features:

* update to latest ash
- update to latest ash

* support latest ash
- support latest ash

## [v0.12.1](https://github.com/ash-project/ash_postgres/compare/v0.12.0...v0.12.1) (2020-07-24)




### Bug Fixes:

* add can? for `:aggregate`
- add can? for `:aggregate`

## [v0.12.0](https://github.com/ash-project/ash_postgres/compare/0.11.2...v0.12.0) (2020-07-24)




### Features:

* update to latest ash
- update to latest ash

## [v0.11.2](https://github.com/ash-project/ash_postgres/compare/0.11.1...v0.11.2) (2020-07-23)




### Bug Fixes:

* typespecs, errant IO.inspect

## [v0.11.1](https://github.com/ash-project/ash_postgres/compare/0.11.0...v0.11.1) (2020-07-23)




### Bug Fixes:

* typespecs, errant IO.inspect

## [v0.11.0](https://github.com/ash-project/ash_postgres/compare/0.10.0...v0.11.0) (2020-07-23)




### Features:

* support ash 13.0 aggregates
- support ash 13.0 aggregates

## [v0.10.0](https://github.com/ash-project/ash_postgres/compare/0.9.0...v0.10.0) (2020-07-15)




### Features:

* update to latest ash
- update to latest ash

## [v0.9.0](https://github.com/ash-project/ash_postgres/compare/0.8.0...v0.9.0) (2020-07-13)




### Features:

* update to latest ash
- update to latest ash

## [v0.8.0](https://github.com/ash-project/ash_postgres/compare/0.7.0...v0.8.0) (2020-07-09)




### Features:

* update to latest ash
- update to latest ash

## [v0.7.0](https://github.com/ash-project/ash_postgres/compare/0.6.0...v0.7.0) (2020-07-09)




### Features:

* update to latest ash
- update to latest ash

* update to latest ash, add docs
- update to latest ash, add docs

* update to ash 0.9.1 for transactions
- update to ash 0.9.1 for transactions

## [v0.6.0](https://github.com/ash-project/ash_postgres/compare/0.5.0...v0.6.0) (2020-06-29)




### Features:

* update to latest ash
- update to latest ash

## [v0.5.0](https://github.com/ash-project/ash_postgres/compare/0.4.0...v0.5.0) (2020-06-29)




### Features:

* upgrade to latest ash
- upgrade to latest ash

## [v0.4.0](https://github.com/ash-project/ash_postgres/compare/0.3.0...v0.4.0) (2020-06-27)




### Features:

* update to latest ash
- update to latest ash

## [v0.3.0](https://github.com/ash-project/ash_postgres/compare/0.2.1...v0.3.0) (2020-06-19)




### Features:

* New filter style (#10)
- New filter style (#10)

## [v0.2.1](https://github.com/ash-project/ash_postgres/compare/0.2.0...v0.2.1) (2020-06-15)




### Bug Fixes:

* update .formatter.exs
- update .formatter.exs

## [v0.2.0](https://github.com/ash-project/ash_postgres/compare/0.1.4...v0.2.0) (2020-06-14)




### Features:

* use the new DSL builder for config (#7)
- use the new DSL builder for config (#7)

## [v0.1.4](https://github.com/ash-project/ash_postgres/compare/0.1.3...v0.1.4) (2020-06-05)




### Bug Fixes:

* update ash version dependency
- update ash version dependency

* account for removal of name
- account for removal of name

## [v0.1.3](https://github.com/ash-project/ash_postgres/compare/0.1.2...v0.1.3) (2020-06-03)

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Coverage Status](https://coveralls.io/repos/github/ash-project/ash_postgres/badge.svg?branch=master)](https://coveralls.io/github/ash-project/ash_postgres?branch=master)
[![Hex version badge](https://img.shields.io/hexpm/v/ash_postgres.svg)](https://hex.pm/packages/ash_postgres)

The documentation for ash_postgres is available on [hexdocs](https://hexdocs.pm/ash_postgres/AshPostgres.html)
20 changes: 20 additions & 0 deletions config/config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,23 @@ if Mix.env() == :dev do
manage_readme_version: "README.md",
version_tag_prefix: "v"
end

if Mix.env() == :test do
# Configure your database
#

config :ash_postgres, AshPostgres.TestRepo,
username: "postgres",
database: "postgres",
hostname: "localhost",
pool: Ecto.Adapters.SQL.Sandbox

# sobelow_skip ["Config.Secrets"]
config :ash_postgres, AshPostgres.TestRepo, password: "postgres"

config :ash_postgres, ecto_repos: [AshPostgres.TestRepo]

config :ash_postgres, AshPostgres.TestRepo, migration_primary_key: [name: :id, type: :binary_id]

config :logger, level: :warn
end
Loading