Setup of AshPostgres is not going well this time, I am getting the following error:
** (CompileError) lib/zenvtc/accounts/resources/user.ex:4: undefined function postgres/1 (there is no such import)
** (CompileError) lib/zenvtc/accounts/resources/user.ex:4: undefined function postgres/1 (there is no such import)
The offending file looks like this:
defmodule Zenvtc.Accounts.User do use Ash.Resource, data_layer: AshPostgres.Datalayer postgres do table "users" repo Zenvtc.Repo end attributes do uuid_primary_key :id endend
defmodule Zenvtc.Accounts.User do use Ash.Resource, data_layer: AshPostgres.Datalayer postgres do table "users" repo Zenvtc.Repo end attributes do uuid_primary_key :id endend
And
mix deps.get
mix deps.get
included these two lines:
ash 2.5.16ash_postgres 1.3.5
ash 2.5.16ash_postgres 1.3.5
I gotta say I am confused. Is something malfunctioning or am I really really tired and doing something obviously wrong? Thanks for your help!
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.