Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite & MongoDB (Preview)
} ``` #### 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
How the donated funds are distributed
Kivach works on the Obyte network, and therefore you can track all donations.