- 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
-
Notifications
You must be signed in to change notification settings - Fork 1
maykbrito/youtube-masterclass-knex
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Releases
No releases published
Packages 0
No packages published