erlangbureau / jamdb_oracle

Oracle Database driver for Erlang
MIT License
106 stars 48 forks source link

Implement to_constraints #157

Closed dfrese closed 1 year ago

dfrese commented 1 year 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 1 year ago

This fixes #155