JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 742
  • Score
    100M100P100Q106323F
  • License ISC

REPL style console for Prisma ORM, heavily inspired from Rails console

Package Exports

  • @prismatools/console
  • @prismatools/console/app.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@prismatools/console) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

prisma-console

Run Prisma Queries in a REPL style console. Heavily inspired by the Rails Console

Screenshot

Screenshot

Usage

  • Install dependencies
npm i pretty-repl
  • Copy the code in app.js to a desired file in your exsisting project
  • [OPTIONAL] Configure the prisma client in your own way
  • Add a script in your package.json file.
    • Remember to use the --experimental-repl-await flag to support await syntax in the REPL console
    • Dont forget to correctly set the file in place of ./app.js
  "main": "app.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
+   "console": "node --experimental-repl-await ./app.js"
  },
  "author": "Kinjal Raykarmakar",
  • Run the console!
npm run console

Forget Prisma Studio! 🤣

Screenshot 2