Database
Prisma will allow you to query the database with ease using Javascript/Typescript
You can use any SQL database but I recommend Postgres.
Fell free to use any provider you like:
Your own server!
Setup
Get your URI (a string starting with "postgres:")
postgres://user:password@postgres:5432/dbnamePaste it to your .env:
# Database URL
POSTGRES_URL="postgres://user:password@postgres:6543/dbname?pgbouncer=true&connection_limit=1"
POSTGRES_URL_NON_POOLING=""postgres://user:password@postgres:5432/dbname"Database Init
Simply run these commands:
Database Queries
Prisma greatly simplify the database queries, here's an example:
Learn more by checking the official Prisma documentation. π
Last updated