Complete the code to import Prisma Client in a Deno project.
import { PrismaClient } from '[1]'; const prisma = new PrismaClient();
Prisma Client is imported from 'npm:@prisma/client' to interact with the database.
Complete the code to define a Drizzle ORM table schema for a 'users' table.
import { pgTable, serial, text } from 'npm:drizzle-orm/pg-core'; export const users = pgTable('users', { id: [1]('id').primaryKey(), name: text('name').notNull(), });
The 'serial' function defines an auto-incrementing integer primary key in Drizzle ORM.
Fix the error in the Prisma query to find a user by email.
const user = await prisma.user.findUnique({
where: { email: [1] },
});The 'where' clause requires the actual email string value, so it must be quoted.
Fill both blanks to create a Drizzle ORM insert query for a new user.
await db.insert([1]).values({ name: [2] });
The 'users' table is the target for insertion, and the name value must be a string.
Fill all three blanks to write a Prisma update query that sets a user's name by ID.
await prisma.user.update({
where: { id: [1] },
data: { name: [2] },
select: { [3]: true }
});The 'id' is a number, the new name is a string, and selecting 'name' returns the updated name.
