Case
SQLRowDecoder.KeyDecodingStrategy.convertFromSnakeCase
Convert from
snake_case_keys to camelCaseKeys before attempting to match a key with the one specified by each type.case convertFromSnakeCase
Discussion
Converting from snake case to camel case:
Capitalizes the word starting after each
_chartacter.Removes all
_characters (except as specified below).Preserves starting and ending
_(as these are often used to indicate private variables or other metadata). For example,one_two_threebecomesoneTwoThree._one_two_three_becomes_oneTwoThree_.
Note
Using a key decoding strategy has a nominal performance cost, as each string key has to be inspected for the _ character.