Ecto_foundationdb - An Ecto Adapter for FoundationDB

From the linked article:

There is a shortcut: Don’t rename the database column, and instead rename the schema’s field name and configure it to point to the database column.

Ecto_fdb could do the same trick I believe ? But yeah, I totally forgot about this. In 99% of cases we care about the model (schema) field names, and not about the DB column names.

1 Like