├── .env ├── .gitignore ├── babel.config.json ├── database.sql ├── package.json ├── prisma ├── migrations │ ├── 20230602114552_create_all_model │ │ └── migration.sql │ ├── 20230602114823_add_description_to_sample_table │ │ └── migration.sql │ └── migration_lock.toml └── schema.prisma ├── src └── prisma-client.js └── tests ├── aggregate.test.js ├── auto-increment.test.js ├── count.test.js ├── crud-many.test.js ├── crud.test.js ├── execute-sql.test.js ├── many-to-many.test.js ├── one-to-many.test.js ├── one-to-one.test.js ├── paging.test.js ├── prisma-client.test.js ├── query-sql.test.js ├── select-fields.test.js ├── sorting.test.js ├── tag-function.test.js ├── transaction.test.js └── where.test.js /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | -------------------------------------------------------------------------------- /babel.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/babel.config.json -------------------------------------------------------------------------------- /database.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/database.sql -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/package.json -------------------------------------------------------------------------------- /prisma/migrations/20230602114552_create_all_model/migration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/prisma/migrations/20230602114552_create_all_model/migration.sql -------------------------------------------------------------------------------- /prisma/migrations/20230602114823_add_description_to_sample_table/migration.sql: -------------------------------------------------------------------------------- 1 | -- AlterTable 2 | ALTER TABLE `sample` ADD COLUMN `description` TEXT NULL; 3 | -------------------------------------------------------------------------------- /prisma/migrations/migration_lock.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/prisma/migrations/migration_lock.toml -------------------------------------------------------------------------------- /prisma/schema.prisma: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/prisma/schema.prisma -------------------------------------------------------------------------------- /src/prisma-client.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/src/prisma-client.js -------------------------------------------------------------------------------- /tests/aggregate.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/aggregate.test.js -------------------------------------------------------------------------------- /tests/auto-increment.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/auto-increment.test.js -------------------------------------------------------------------------------- /tests/count.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/count.test.js -------------------------------------------------------------------------------- /tests/crud-many.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/crud-many.test.js -------------------------------------------------------------------------------- /tests/crud.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/crud.test.js -------------------------------------------------------------------------------- /tests/execute-sql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/execute-sql.test.js -------------------------------------------------------------------------------- /tests/many-to-many.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/many-to-many.test.js -------------------------------------------------------------------------------- /tests/one-to-many.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/one-to-many.test.js -------------------------------------------------------------------------------- /tests/one-to-one.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/one-to-one.test.js -------------------------------------------------------------------------------- /tests/paging.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/paging.test.js -------------------------------------------------------------------------------- /tests/prisma-client.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/prisma-client.test.js -------------------------------------------------------------------------------- /tests/query-sql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/query-sql.test.js -------------------------------------------------------------------------------- /tests/select-fields.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/select-fields.test.js -------------------------------------------------------------------------------- /tests/sorting.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/sorting.test.js -------------------------------------------------------------------------------- /tests/tag-function.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/tag-function.test.js -------------------------------------------------------------------------------- /tests/transaction.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/transaction.test.js -------------------------------------------------------------------------------- /tests/where.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ProgrammerZamanNow/belajar-nodejs-database/HEAD/tests/where.test.js --------------------------------------------------------------------------------