johnperez416

johnperez416/prisma

Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite & MongoDB (Preview)

TypeScript
0
0
Apache License 2.0

} ``` #### Step 3: Generate Prisma Client Run the following command to generate Prisma Client: ``` npx prisma generate ``` #### Step 4: Import and use Prisma Client Once Prisma Client has been generated, you can import it and send queries to your database. ```ts import { PrismaClient } from '@prisma/client' const prisma = new PrismaClient() async function main() { const newUser = await prisma.user.create({ data: { name: 'Alice', email: '[email protected]', }, }) console.log(newUser) } main() ``` ## Why Prisma? - **Type-safe database queries** – Prisma Client ensures that all your database queries are type-safe and verified at compile time. No more typos or silly mistakes when writing queries. - **Intuitive data modeling** – Prisma Migrate allows you to model your data in an intuitive way and handles the underlying database schema for you. - **Auto-generated migrations** – Prisma Migrate generates SQL migrations based on the data model you defined, allowing you to keep your database schema in sync with your application. - **Modern tooling** – Prisma is a modern tool that integrates well with other modern

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies

Support the repos that depend on this repository

Top contributors

timsuchanek's profile
timsuchanek
2508 contributions
prisma-bot's profile
prisma-bot
2115 contributions
Jolg42's profile
Jolg42
1704 contributions
renovate[bot]'s profile
renovate[bot]
1341 contributions
nikolasburk's profile
nikolasburk
853 contributions
millsp's profile
millsp
507 contributions
aqrln's profile
aqrln
445 contributions
renovate-bot's profile
renovate-bot
310 contributions
SevInf's profile
SevInf
277 contributions
jkomyno's profile
jkomyno
273 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet