We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As noted in this issue: ash-project/ash#310
Our default value handling is rudimentary. What we do currently:
defp default(%{default: value, type: type}, _) do case Ash.Type.dump_to_native(type, value) do {:ok, value} when is_struct(value) -> to_string(value) {:ok, value} -> inspect(value) _ -> "nil" end rescue _ -> "nil" end
But what we need to do is add a protocol like AshPostgres.ToSql that can be implemented for various types and structs.
AshPostgres.ToSql
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
As noted in this issue: ash-project/ash#310
Our default value handling is rudimentary. What we do currently:
But what we need to do is add a protocol like
AshPostgres.ToSql
that can be implemented for various types and structs.The text was updated successfully, but these errors were encountered: