mirror of
https://github.com/webstudio-is/webstudio.git
synced 2026-11-08 21:15:18 +09:00
21 lines
380 B
TypeScript
21 lines
380 B
TypeScript
import {
|
|
PrismaClient,
|
|
Prisma,
|
|
PrismaClientKnownRequestError,
|
|
} from "@webstudio-is/sdk/lib/prisma.server";
|
|
|
|
export const prisma = new PrismaClient();
|
|
export { Prisma, PrismaClientKnownRequestError };
|
|
|
|
const main = async () => {
|
|
await prisma.$connect();
|
|
};
|
|
|
|
main()
|
|
.catch((error) => {
|
|
throw error;
|
|
})
|
|
.finally(async () => {
|
|
await prisma.$disconnect();
|
|
});
|