Hello,
Is there a way I can access PostgreSQL sequence nextval from Elixir Ecto query?
I would be very grateful for your response.
Thanks.
Jerry
Hello,
Is there a way I can access PostgreSQL sequence nextval from Elixir Ecto query?
I would be very grateful for your response.
Thanks.
Jerry
https://hexdocs.pm/ecto/Ecto.Query.html#module-fragments
If you need an escape hatch, Ecto provides fragments (see
Ecto.Query.API.fragment/1
) to inject SQL (and non-SQL) fragments into queries.