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

ash.gen.resource with table #107

Open
flip111 opened this issue Nov 12, 2024 · 1 comment
Open

ash.gen.resource with table #107

flip111 opened this issue Nov 12, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@flip111
Copy link

flip111 commented Nov 12, 2024

When running ash.gen.resource a second time (for another model) I got an error about the first model and a solution to fix this

For example:

sqlite do
  table "the_table"
  repo YourApp.Repo
end

the solution is good, but couldn't ash.gen.resource generate this in the first place? Perhaps a new --table flag can be added. Or come up with a table name similar to the name of the resource

@flip111 flip111 added the enhancement New feature or request label Nov 12, 2024
@zachdaniel
Copy link
Contributor

I believe this is just a missing callback which can be copied from ash_postgres which does this automatically.

@zachdaniel zachdaniel transferred this issue from ash-project/ash Nov 24, 2024
@zachdaniel zachdaniel moved this to Someday in Ash Framework Roadmap Nov 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Someday
Development

No branches or pull requests

2 participants