Open aklotos opened 3 years ago
Not sure if there is any appetite to allow an option for this, but I've put in a proposed PR if there is any opening to support a custom format in cases where snake_case is not, for whatever reason, being used on the target database.
In my use case I have a column in a table with a perfectly valid name
_id
. When building and executing anUPDATE
query using utility withWHERE
clause with condition on_id
the column name is converted to"id"
after normalization. The problem comes from thelodash#snakeCase
implementation used in normalization logic which removes the leading underscores in the column names.Example:
Expected:
Actual: