Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit64fa0a7

Browse files
committed
docs: add guidance to useash_postgres dep
1 parent89e4761 commit64fa0a7

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎lib/data_layer.ex‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,13 @@ defmodule AshPostgres.DataLayer do
1212
1313
### Usage
1414
15-
To use this data layer, you need to define an `AshPostgres.Repo`. Ash adds some
15+
First, ensure you've added ash_postgres to your `mix.exs` file.
16+
17+
```elixir
18+
{:ash_postgres, "~> x.y.z"}
19+
```
20+
21+
To use this data layer, you need to define an `Ecto.Repo`. AshPostgres adds some
1622
functionality on top of ecto repos, so you'll want to use `AshPostgres.Repo`
1723
1824
Then, configure your resource like so:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp