Ask HN: Db column naming: snake_case vs. CamelCase, what's the best convention? 2 points by jerawaj740 11mo ago ↗ HN
[–] leakycap 11mo ago ↗ snake_case because if your column ends up in a Postgres/MySQL environment your CamelCase will be become camelcaseAnd reading those becomes nightmaresIf you are just working in Javascript/Node.js, CamelCase is the preferred option.
[–] ompogUe 11mo ago ↗ Depending upon how you organize the words within them (*_id, *_name, *_percent), snake case allows you to parse the column names dynamically for things like santization and formatting.
4 comments of 5
[ 0.18 ms ] story [ 27.2 ms ] threadAnd reading those becomes nightmares
If you are just working in Javascript/Node.js, CamelCase is the preferred option.
I believe this is PascalCase