Skip to main content
Glama

Prisma MCP Server

Official
by prisma
Apache 2.0
4
44,231
  • Linux
  • Apple
tests.ts1.15 kB
import { Providers } from '../../_utils/providers' import testMatrix from './_matrix' // @ts-ignore import type { PrismaClient } from './generated/prisma/client' declare let prisma: PrismaClient // https://github.com/prisma/prisma/issues/15177 testMatrix.setupTestSuite( () => { test('should allow CRUD methods on a table column that has a space', async () => { const created = await prisma.customer.create({ data: { test: true, }, }) const read = await prisma.customer.findMany({ where: { userId: created.userId, }, }) expect(read).toBeDefined() const updated = await prisma.customer.update({ where: { userId: created.userId, }, data: { test: false, }, }) expect(updated.test).toEqual(false) const deleted = await prisma.customer.delete({ where: { userId: created.userId, }, }) expect(deleted).toBeDefined() }) }, { optOut: { from: [Providers.MONGODB], reason: 'Mongodb dont have tables or columns', }, }, )

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/prisma/prisma'

If you have feedback or need assistance with the MCP directory API, please join our Discord server