erlangbureau / jamdb_oracle

Oracle Database driver for Erlang
MIT License
103 stars 46 forks source link

Implement to_constraints #157

Closed dfrese closed 9 months ago

dfrese commented 9 months ago

I extracted the constraint names 1:1 as Oracle returns them, which usually does not match the names generated by Ecto: Oracle always adds the Schema/User, and also all uppercase. That's inconvenient, but I did not want to implement something opinionated. At least this works if the constraint names are explicitly given via the name: option to the Ecto.Changeset functions, and optionally match: :suffix.

dfrese commented 9 months ago

This fixes #155