Skip to content

maykbrito/youtube-masterclass-knex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Como utilizar?

  • Instalar Knex
  • Install DB of your choice
  • Create and Config ./knexfile.js with npx knex init
  • Create migration (knex migrate:make migration_name)(add script to package.json)
  • Create and Config config/database.js
  • Log in to local postgres: psql -U postgres
  • Create database knex_test
  • Create seed (add script to package.json)
  • Run Migration and Seeds
  • Apresentação do uso no Knex
  • Select
  • Insert
  • Update
  • Delete
  • Add error handling
  • Relations
  • Soft Delete

Releases

No releases published

Packages

No packages published