Prisma client wrapper
npm install @umami/prisma-client
Declare an environment variable for the connection:
DATABASE_URL=postgresql://username:password@hostname:port/database
See https://www.prisma.io/docs/reference/database-reference/connection-urls
Example usage:
import prisma from '@umami/prisma-client';
const user = await prisma.client.user.findUnique({
where: {
id: 123
}
});
MIT