Skip to content

Instantly share code, notes, and snippets.

@koistya
Created May 21, 2017 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koistya/10a09698e823a66e48463d4016b47850 to your computer and use it in GitHub Desktop.
Save koistya/10a09698e823a66e48463d4016b47850 to your computer and use it in GitHub Desktop.
“camelCase” < = > “snake_case” conversion with PostgreSQL and Knex.js https://medium.com/p/956357872fe4
import knex from 'knex';
export default knex({
client: 'pg',
connection: process.env.DATABASE_URL,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment