Replies: 1 comment 4 replies
-
Such an option sounds quite specific to me, although I can understand the need for this. I personally would like to go with a more generic approach there, that would introduce a general mechanism for remapping field types. Something like having a set of lookups in your
(Field names, etc are obviously up for discussion) I believe such a feature would not only address this specific use-case but allow to replace a large number of usages of |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Would you accept a PR that adds this as a configuration option to diesel.toml? We're in the process of upgrading from diesel 1.4 to diesel 2 and have a lot of postgres arrays in our schema, and the change to Array<Nullable> adds extra complexity to avoid an issue that we haven't encountered so far (arrays having null values). Our current workaround is to generate a schema.patch file that replaces all occurences of Array<Nullable> with Array, but it would be more robust if we could configure diesel_cli to infer Array as it did in diesel 1.x.
Beta Was this translation helpful? Give feedback.
All reactions